kopia lustrzana https://github.com/inkstitch/inkstitch
set stdout to binary mode on windows
rodzic
1ab23cd874
commit
8f6652dbef
|
@ -36,6 +36,10 @@ class Output(InkstitchExtension):
|
|||
|
||||
write_embroidery_file(temp_file.name, stitch_plan, self.document.getroot())
|
||||
|
||||
if sys.platform == "win32":
|
||||
import msvcrt
|
||||
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
|
||||
|
||||
# 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:
|
||||
|
|
Ładowanie…
Reference in New Issue