Browse Source

Fix subprocess to work properly when frozen

This fixes frozen Gooey scripts when frozen using PyInstaller.
See: http://stackoverflow.com/a/10338737/74123
pull/168/merge
Aditya Panchal 8 years ago
committed by Chris
parent
commit
b275ecf63c
1 changed files with 1 additions and 1 deletions
  1. 2
      gooey/gui/processor.py

2
gooey/gui/processor.py

@ -40,7 +40,7 @@ class ProcessController(object):
env["GOOEY"] = "1"
self._process = subprocess.Popen(
command.encode(sys.getfilesystemencoding()),
bufsize=1, stdout=subprocess.PIPE,
bufsize=1, stdout=subprocess.PIPE, stdin=subprocess.PIPE,
stderr=subprocess.STDOUT, shell=True, env=env)
Pool(1).apply_async(self._forward_stdout, (self._process,))

Loading…
Cancel
Save