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