summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stub.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/stub.py b/stub.py
index 850cfe40..6cd980cb 100644
--- a/stub.py
+++ b/stub.py
@@ -33,6 +33,10 @@ args[0] = binary_path
extension = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = extension.communicate()
+if sys.platform == "win32":
+ import msvcrt
+ msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
+
stdout = stdout.strip()
if stdout:
print stdout.strip(),