summaryrefslogtreecommitdiff
path: root/stub.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-08-16 15:53:59 -0400
committerGitHub <noreply@github.com>2018-08-16 15:53:59 -0400
commitfe480750c599b19b3b3c3318285f444c9d8dc1c8 (patch)
tree4d2e4691c10f6bfc7193717aa2550f188f0236a0 /stub.py
parente51587f58310de8dc7fd93ac54687df313225417 (diff)
parentf70fa25a1630b55f9568e7c8214e6d03536f978a (diff)
Merge pull request #260 from inkstitch/lexelby-windows-output-fix
fix output extension on windows
Diffstat (limited to 'stub.py')
-rw-r--r--stub.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/stub.py b/stub.py
index dae2a28f..9c316b99 100644
--- a/stub.py
+++ b/stub.py
@@ -43,6 +43,10 @@ except:
print >> sys.stderr, traceback.format_exc()
sys.exit(1)
+if sys.platform == "win32":
+ import msvcrt
+ msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
+
stdout = stdout.strip()
if stdout:
print stdout.strip(),