Index: wafadmin/Runner.py =================================================================== --- wafadmin/Runner.py (revision 3760) +++ wafadmin/Runner.py (working copy) @@ -66,9 +66,11 @@ debug("system command -> "+ s, 'runner') if Params.g_verbose or g_quiet: printout(s+'\n') # encase the command in double-quotes in windows - if sys.platform == 'win32' and not s.startswith('""'): - s = '"%s"' % s - proc = subprocess.Popen(s, shell=1, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + #if sys.platform == 'win32' and not s.startswith('""'): + # s = '"%s"' % s + startupinfo = subprocess.STARTUPINFO() + startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW + proc = subprocess.Popen(s, shell=0, startupinfo=startupinfo, stdout=subprocess.PIPE, stderr=subprocess.PIPE) process_cmd_output(proc) stat = proc.wait() if stat & 0xff: return stat | 0x80 @@ -79,9 +81,11 @@ debug("system command (interact) -> "+ s, 'runner') if Params.g_verbose or g_quiet: printout(s+'\n') # encase the command in double-quotes in windows - if sys.platform == 'win32' and not s.startswith('""'): - s = '"%s"' % s - proc = subprocess.Popen(s, shell=1) + #if sys.platform == 'win32' and not s.startswith('""'): + # s = '"%s"' % s + startupinfo = subprocess.STARTUPINFO() + startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW + proc = subprocess.Popen(s, shell=0, startupinfo=startupinfo) stat = proc.wait() if stat & 0xff: return stat | 0x80 return stat >> 8