Include . in PYTHONPATH (makes testing unbundled extensions easier)
--- a/tests/run-tests.py Wed Aug 29 16:50:21 2007 -0700
+++ b/tests/run-tests.py Wed Aug 29 17:01:10 2007 -0700
@@ -154,11 +154,12 @@
os.environ["PATH"] = "%s%s%s" % (BINDIR, os.pathsep, os.environ["PATH"])
+ pydir = os.pathsep.join([PYTHONDIR, TESTDIR])
pythonpath = os.environ.get("PYTHONPATH")
if pythonpath:
- pythonpath = PYTHONDIR + os.pathsep + pythonpath
+ pythonpath = pydir + os.pathsep + pythonpath
else:
- pythonpath = PYTHONDIR
+ pythonpath = pydir
os.environ["PYTHONPATH"] = pythonpath
use_correct_python()