From a77d7a2157ca17ef8cd2518c0db72aa2e6a0e1ca Mon Sep 17 00:00:00 2001 From: daale010 <tim.vandaalen@wur.nl> Date: Wed, 10 Nov 2021 08:18:57 +0100 Subject: [PATCH] Removed confirm question during build --- pyinstaller_script.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyinstaller_script.py b/pyinstaller_script.py index 0ed8d35..858dd4f 100644 --- a/pyinstaller_script.py +++ b/pyinstaller_script.py @@ -15,11 +15,11 @@ This makes it rougly 30 seconds slower than the current variant. # Run command in shell, stdout is printed to the screen def run_cmd(cmd): - ps = run(cmd, stderr=STDOUT, shell=True, text=True) + ps = run(cmd, stderr=STDOUT, shell=True, universal_newlines=True) # Print anny errors if ps.stderr != None: print(ps.stdout) - raise Exception("ui file conversion error") + raise Exception("shell run error") # Convert the .ui files to .py files @@ -92,11 +92,11 @@ if __name__ == "__main__": # Step 2b, Create the venv if needed venv_activate = venv + f"{sep}Scripts{sep}activate.bat" if (not path.exists(venv_activate)) or (not path.isfile(venv_activate)): - run_cmd(f"python -m venv {venv}") + run_cmd(f"python -m venv {venv}") run_cmd(f"{venv_activate} {cmd_sep} pip install -r requirements.txt") # Step 3, Activate venv and tun pyinstaller - run_cmd(f"{venv_activate} {cmd_sep} pyinstaller --clean {getcwd()}{sep}irods-iBridgesGui.py") + run_cmd(f"{venv_activate} {cmd_sep} pyinstaller --clean --noconfirm {getcwd()}{sep}irods-iBridgesGui.py") dist_folder = f"{getcwd()}{sep}dist" -- GitLab