Skip to content

Commit

Permalink
Fix subprocess to work properly when frozen
Browse files Browse the repository at this point in the history
This fixes frozen Gooey scripts when frozen using PyInstaller.
See: http://stackoverflow.com/a/10338737/74123
  • Loading branch information
bastula authored and chriskiehl committed Aug 4, 2017
1 parent 6134c39 commit b275ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gooey/gui/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def run(self, command):
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,))

Expand Down

0 comments on commit b275ecf

Please sign in to comment.