summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-08-03 21:50:54 -0400
committerLex Neva <github.com@lexneva.name>2018-08-03 21:50:54 -0400
commitb7c5a594ddded90c6ff9233825ac280aa7eb0367 (patch)
treee137776666280ce4169fe92fcb28b9427248501e
parent8f6652dbef562a5b0f865085941d5a5095d8babc (diff)
debug
-rw-r--r--lib/extensions/output.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/extensions/output.py b/lib/extensions/output.py
index e72eac7b..bae0998c 100644
--- a/lib/extensions/output.py
+++ b/lib/extensions/output.py
@@ -37,6 +37,7 @@ class Output(InkstitchExtension):
write_embroidery_file(temp_file.name, stitch_plan, self.document.getroot())
if sys.platform == "win32":
+ print >> sys.stderr, "setting stdout to binary mode"
import msvcrt
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
@@ -44,6 +45,7 @@ class Output(InkstitchExtension):
# to the destination file that the user chose
with open(temp_file.name) as output_file:
sys.stdout.write(output_file.read())
+ sys.stdout.flush()
# clean up the temp file
os.remove(temp_file.name)