diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2019-02-16 17:07:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-16 17:07:34 -0500 |
| commit | 2ab4c451e8042868b2516a6b3fe1f60836f27ffe (patch) | |
| tree | 0ce616ac57e6a2aa507461486233c71373467c9a /stub.py | |
| parent | bd6e4d9d32fd314b66f3c5d798c7151bf543d07f (diff) | |
| parent | fa3236372bcee28f4aaa78da47b68c5d7f32cca4 (diff) | |
tons of bug fixes (#364)
bug fixes
Diffstat (limited to 'stub.py')
| -rw-r--r-- | stub.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,10 +1,11 @@ #!/usr/bin/env python -import sys import os import subprocess +import sys import traceback + # ink/stitch # # stub.py: pyinstaller execution stub @@ -15,7 +16,6 @@ import traceback # This Python script exists only to execute the actual extension binary. It # can be copied to, e.g., "embroider_params.py", in which case it will look # for a binary at inkstitch/bin/embroider_params. - script_name = os.path.basename(__file__) if script_name.endswith('.py'): @@ -48,12 +48,12 @@ if sys.platform == "win32": import msvcrt msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) -stdout = stdout.strip() -if stdout: - print stdout.strip(), +sys.stdout.write(stdout) +sys.stdout.flush() stderr = stderr.strip() if stderr: - print >> sys.stderr, stderr.strip(), + sys.stderr.write(stderr.strip()) + sys.stderr.flush() sys.exit(extension.returncode) |
