Fix execution on systems where qmtest is in a path that contains spaces
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 7 Feb 2009 13:03:42 +0000 (13:03 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 7 Feb 2009 13:03:42 +0000 (13:03 +0000)
(C:\Program Files\Python24\Scripts) by just using the found qmtest name.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3979 fdb21ef1-2011-0410-befe-b5e4ea1792b1

runtest.py

index d2ee2e98012df63386458d66dca2a7e38586967f..877f1cd3b51770ef8357dc88e35ba36d6d032d56 100644 (file)
@@ -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' +