diff --git a/build.py b/build.py index 18e10c5..a6a73fc 100644 --- a/build.py +++ b/build.py @@ -7,21 +7,18 @@ Building Executables ''' print('Started build...') + build = subprocess.Popen(["pyinstaller", "--onefile", "--windowed", "--icon=logo.ico", "Pic2Text.py"], + stdin =subprocess.PIPE, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, universal_newlines=True, bufsize=0) - -# build = subprocess.Popen(["pyinstaller", "--onefile", "--windowed", "--icon=logo.ico", "Pic2Text.py"], -# stdin =subprocess.PIPE, -# stdout=subprocess.PIPE, -# stderr=subprocess.PIPE, -# universal_newlines=True, -# bufsize=0) -# # Send OP -# build.stdin.write("uname -a\n") -# build.stdin.write("uptime\n") -# build.stdin.close() +# Send OP +build.stdin.write("uname -a\n") +build.stdin.write("uptime\n") +build.stdin.close() # Fetch output for line in build.stdout: