From 9060a6752c08163368f7a5bc6a0cedff504f3a8f Mon Sep 17 00:00:00 2001 From: stevenknight Date: Sat, 7 Feb 2009 13:03:42 +0000 Subject: [PATCH] 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 --- runtest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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' + -- 2.26.2