From 51d07e07c4dc001448847b67a2e29d435b20ef60 Mon Sep 17 00:00:00 2001 From: Lucien RENAUD Date: Mon, 6 Feb 2023 22:12:01 +0100 Subject: [PATCH 1/2] rm start gui from install script --- install.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.ps1 b/install.ps1 index ef4cfef..e667532 100644 --- a/install.ps1 +++ b/install.ps1 @@ -1,4 +1,3 @@ python -m venv .venv .\.venv\Scripts\activate -pip install -r .\requirements.txt -python .\gui.py \ No newline at end of file +pip install -r .\requirements.txt \ No newline at end of file From d603713fd3f1edc5f5fa63e13ddce746294fda50 Mon Sep 17 00:00:00 2001 From: Lucien RENAUD Date: Mon, 6 Feb 2023 23:04:56 +0100 Subject: [PATCH 2/2] fix not retruning terminal --- gui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gui.py b/gui.py index dc4385e..01e14f9 100644 --- a/gui.py +++ b/gui.py @@ -5,7 +5,7 @@ import sys, os if len(sys.argv) > 1: cmd = "python scripts/run.py " + str(sys.argv[1] ) print(cmd) - p = subprocess.Popen(cmd, shell=True) + p = subprocess.run(cmd, shell=True) else: fname = sg.Window('Files exporter', [[sg.Text('Folder to export')], @@ -20,4 +20,6 @@ else: print(fname) cmd = "python scripts/run.py " + str(fname) print(cmd) - p = subprocess.Popen(cmd, shell=True) + p = subprocess.run(cmd, shell=True) + +print("Done") \ No newline at end of file