From 007495f160053a41347ea3040a3feef3d4da8229 Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Sat, 7 Feb 2009 13:03:42 +0000 Subject: 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. --- runtest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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' + -- cgit v0.12