From 0359943bc841cc1526a6be7eb00d77d7dafe35f6 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 9854fc52..8513a782 100644 --- a/gooey/gui/processor.py +++ b/gooey/gui/processor.py @@ -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,))