From: stevenknight Date: Sat, 7 Feb 2009 13:03:42 +0000 (+0000) Subject: Fix execution on systems where qmtest is in a path that contains spaces X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9060a6752c08163368f7a5bc6a0cedff504f3a8f;p=scons.git 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. git-svn-id: http://scons.tigris.org/svn/scons/trunk@3979 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/runtest.py b/runtest.py index d2ee2e98..877f1cd3 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' +