From b7c5a594ddded90c6ff9233825ac280aa7eb0367 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Fri, 3 Aug 2018 21:50:54 -0400 Subject: debug --- lib/extensions/output.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/extensions/output.py') 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) -- cgit v1.2.3