diff options
author | Jeroen Demeyer <jdemeyer@cage.ugent.be> | 2018-10-22 17:27:05 +0200 |
---|---|---|
committer | Jeroen Demeyer <jdemeyer@cage.ugent.be> | 2018-10-22 17:27:37 +0200 |
commit | 116faa4bd66f0db17e011a767701cc78f220792a (patch) | |
tree | b95561b94fc2fdfd5846a311a43e281733d81600 | |
parent | cc02495da4e5186845ae6e5d754faf92cff6335b (diff) | |
download | cython-116faa4bd66f0db17e011a767701cc78f220792a.tar.gz |
PYTHONPATH: do not add trailing pathsep
-rwxr-xr-x | runtests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtests.py b/runtests.py index e30c5982f..69cc1db7c 100755 --- a/runtests.py +++ b/runtests.py @@ -1734,7 +1734,10 @@ class EndToEndTest(unittest.TestCase): .replace("PYTHON", sys.executable)) old_path = os.environ.get('PYTHONPATH') env = dict(os.environ) - env['PYTHONPATH'] = self.cython_syspath + os.pathsep + (old_path or '') + new_path = self.cython_syspath + if old_path: + new_path = new_path + os.pathsep + old_path + env['PYTHONPATH'] = new_path cmd = [] out = [] err = [] |