From b275ecf63c5650f02390fcf16e8672637bc09831 Mon Sep 17 00:00:00 2001 From: Aditya Panchal Date: Wed, 15 Jun 2016 15:23:07 -0500 Subject: [PATCH] Fix subprocess to work properly when frozen This fixes frozen Gooey scripts when frozen using PyInstaller. See: http://stackoverflow.com/a/10338737/74123 --- gooey/gui/processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gooey/gui/processor.py b/gooey/gui/processor.py index 9854fc5..8513a78 100644 --- a/gooey/gui/processor.py +++ b/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,))