Include . in PYTHONPATH (makes testing unbundled extensions easier)
authorBrendan Cully <brendan@kublai.com>
Wed, 29 Aug 2007 17:01:10 -0700
changeset 5268 980da86fc66a
parent 5267 b817d17c7ee5
child 5269 46c5e1ee8aaa
Include . in PYTHONPATH (makes testing unbundled extensions easier)
tests/run-tests.py
--- 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()