summaryrefslogtreecommitdiffstats
path: root/runtest.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-06-18 18:35:59 (GMT)
committerSteven Knight <knight@baldmt.com>2003-06-18 18:35:59 (GMT)
commit311058e447522c96a320b81bc8beaca41112c006 (patch)
treee4c8fae81af049dcb0319f978b24bb28d12df714 /runtest.py
parentb61917920644e58ab48cad87dabc19f9db6f0a64 (diff)
downloadSCons-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.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/runtest.py b/runtest.py
index 049643a..aa8db9d 100644
--- a/runtest.py
+++ b/runtest.py
@@ -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 + \