diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-08-03 21:50:54 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-08-03 21:50:54 -0400 |
| commit | b7c5a594ddded90c6ff9233825ac280aa7eb0367 (patch) | |
| tree | e137776666280ce4169fe92fcb28b9427248501e | |
| parent | 8f6652dbef562a5b0f865085941d5a5095d8babc (diff) | |
debug
| -rw-r--r-- | lib/extensions/output.py | 2 |
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) |
