Mercurial > hg
changeset 5251:90919a6f5c8f
run-tests: append PYTHONPATH instead of overwriting it
Optional dependencies like svn bindings not necessarily live in site-packages.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 27 Aug 2007 22:17:51 +0200 |
parents | 585471802a01 |
children | c0281c6b40b0 |
files | tests/run-tests.py |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Mon Aug 27 11:56:53 2007 -0700 +++ b/tests/run-tests.py Mon Aug 27 22:17:51 2007 +0200 @@ -152,7 +152,13 @@ os.chdir(TESTDIR) os.environ["PATH"] = "%s%s%s" % (BINDIR, os.pathsep, os.environ["PATH"]) - os.environ["PYTHONPATH"] = PYTHONDIR + + pythonpath = os.environ.get("PYTHONPATH") + if pythonpath: + pythonpath = PYTHONDIR + os.pathsep + pythonpath + else: + pythonpath = PYTHONDIR + os.environ["PYTHONPATH"] = pythonpath use_correct_python()