summaryrefslogtreecommitdiff
path: root/lib/extensions/output.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions/output.py')
-rw-r--r--lib/extensions/output.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/extensions/output.py b/lib/extensions/output.py
index 72bbe37d..924c2d3a 100644
--- a/lib/extensions/output.py
+++ b/lib/extensions/output.py
@@ -35,12 +35,14 @@ class Output(InkstitchExtension):
# in windows, failure to close here will keep the file locked
temp_file.close()
+ # libembroidery likes to debug log things to stdout. No way to disable it.
+ save_stdout()
write_embroidery_file(temp_file.name, stitch_plan, self.document.getroot())
# inkscape will read the file contents from stdout and copy
# to the destination file that the user chose
with open(temp_file.name) as output_file:
- sys.stdout.write(output_file.read())
+ sys.real_stdout.write(output_file.read())
# clean up the temp file
os.remove(temp_file.name)