diff --git a/tools/building.py b/tools/building.py index c06159be3793bffc7678443cb0eea9063c9f7027..0ed887e6a8921d56a7a3f4e086c761b65ea77217 100644 --- a/tools/building.py +++ b/tools/building.py @@ -435,13 +435,14 @@ class Win32Spawn: newargs = string.join(args[1:], ' ') cmdline = cmd + " " + newargs startupinfo = subprocess.STARTUPINFO() - # startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW + startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW proc = subprocess.Popen(cmdline, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, startupinfo=startupinfo, shell = False) data, err = proc.communicate() rv = proc.wait() - if rv: + if err: print err + if rv: return rv if data: