Merge pull request #3949 from nulano/winbuild_output

Print winbuild compile output properly in Python 3.x
This commit is contained in:
Hugo 2019-07-05 08:54:35 +03:00 committed by GitHub
commit 6528d3b7f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,9 +50,9 @@ def run_script(params):
(trace, stderr) = proc.communicate() (trace, stderr) = proc.communicate()
status = proc.returncode status = proc.returncode
print("-- stderr --") print("-- stderr --")
print(stderr) print(stderr.decode())
print("-- stdout --") print("-- stdout --")
print(trace) print(trace.decode())
print("Done with %s: %s" % (version, status)) print("Done with %s: %s" % (version, status))
return (version, status, trace, stderr) return (version, status, trace, stderr)
except Exception as msg: except Exception as msg: