summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)