Mercurial > hg-stable
changeset 5268:980da86fc66a
Include . in PYTHONPATH (makes testing unbundled extensions easier)
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 29 Aug 2007 17:01:10 -0700 |
parents | b817d17c7ee5 |
children | 46c5e1ee8aaa |
files | tests/run-tests.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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()