summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2009-02-07 13:03:42 (GMT)
committerSteven Knight <knight@baldmt.com>2009-02-07 13:03:42 (GMT)
commit007495f160053a41347ea3040a3feef3d4da8229 (patch)
treeb6ffe25433c686a01e2aefb6ad4486f9dd687c6a
parentdcdbfee397b1953f4121d6910b0285b6cfb2bd9a (diff)
downloadSCons-007495f160053a41347ea3040a3feef3d4da8229.zip
SCons-007495f160053a41347ea3040a3feef3d4da8229.tar.gz
SCons-007495f160053a41347ea3040a3feef3d4da8229.tar.bz2
Fix execution on systems where qmtest is in a path that contains spaces
(C:\Program Files\Python24\Scripts) by just using the found qmtest name.
-rw-r--r--runtest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtest.py b/runtest.py
index d2ee2e9..877f1cd 100644
--- a/runtest.py
+++ b/runtest.py
@@ -277,7 +277,9 @@ except NameError:
for q in ['qmtest', 'qmtest.py']:
path = whereis(q)
if path:
- qmtest = path
+ # The name was found on $PATH; just execute the found name so
+ # we don't have to worry about paths containing white space.
+ qmtest = q
break
if not qmtest:
msg = ('Warning: found neither qmtest nor qmtest.py on $PATH;\n' +