From: Brian Warner <warner@allmydata.com>
Date: Sat, 3 Nov 2007 05:32:55 +0000 (-0700)
Subject: Makefile: add simple 'repl' target to start a python interpreter with a useful PYTHONPATH
X-Git-Tag: allmydata-tahoe-0.7.0~291
X-Git-Url: https://git.rkrishnan.org/pf/simplejson//%22%22?a=commitdiff_plain;h=b70bda01f13019cd3db39752dce8e78fcfeee2eb;p=tahoe-lafs%2Ftahoe-lafs.git

Makefile: add simple 'repl' target to start a python interpreter with a useful PYTHONPATH
---

diff --git a/Makefile b/Makefile
index d3ee9749..793b2040 100644
--- a/Makefile
+++ b/Makefile
@@ -225,6 +225,11 @@ check-speed: .built
 	$(PYTHON) src/allmydata/test/check_speed.py $(TESTCLIENTDIR)
 	$(PYTHON) bin/tahoe stop $(TESTCLIENTDIR)
 
+# 'make repl' is a simple-to-type command to get a Python interpreter loop
+# from which you can type 'import allmydata'
+repl:
+	$(PP) python
+
 test-darcs-boringfile:
 	$(MAKE)
 	$(PYTHON) misc/test-darcs-boringfile.py