diff options
author | Steven Knight <knight@baldmt.com> | 2003-06-18 18:35:59 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-06-18 18:35:59 (GMT) |
commit | 311058e447522c96a320b81bc8beaca41112c006 (patch) | |
tree | e4c8fae81af049dcb0319f978b24bb28d12df714 /runtest.py | |
parent | b61917920644e58ab48cad87dabc19f9db6f0a64 (diff) | |
download | SCons-311058e447522c96a320b81bc8beaca41112c006.zip SCons-311058e447522c96a320b81bc8beaca41112c006.tar.gz SCons-311058e447522c96a320b81bc8beaca41112c006.tar.bz2 |
Change the double quotes around an up-to-date target to be like Make.
Diffstat (limited to 'runtest.py')
-rw-r--r-- | runtest.py | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -157,8 +157,11 @@ def whereis(file): aegis = whereis('aegis') -spe = None +sp = [] +spe = [] if aegis: + sp = os.popen("aesub '$sp' 2>/dev/null", "r").read()[:-1] + sp = string.split(sp, os.pathsep) spe = os.popen("aesub '$spe' 2>/dev/null", "r").read()[:-1] spe = string.split(spe, os.pathsep) @@ -315,11 +318,13 @@ os.environ['SCONS_CWD'] = cwd os.environ['SCONS_VERSION'] = version old_pythonpath = os.environ.get('PYTHONPATH') -os.environ['PYTHONPATH'] = pythonpath_dir + \ - os.pathsep + \ - os.path.join(cwd, 'build', 'etc') + \ - os.pathsep + \ - os.path.join(cwd, 'etc') + +pythonpaths = [ pythonpath_dir ] +for p in sp: + pythonpaths.append(os.path.join(p, 'build', 'etc')) + pythonpaths.append(os.path.join(p, 'etc')) +os.environ['PYTHONPATH'] = string.join(pythonpaths, os.pathsep) + if old_pythonpath: os.environ['PYTHONPATH'] = os.environ['PYTHONPATH'] + \ os.pathsep + \ |