fix not retruning terminal
This commit is contained in:
parent
51d07e07c4
commit
d603713fd3
6
gui.py
6
gui.py
@ -5,7 +5,7 @@ import sys, os
|
|||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
cmd = "python scripts/run.py " + str(sys.argv[1] )
|
cmd = "python scripts/run.py " + str(sys.argv[1] )
|
||||||
print(cmd)
|
print(cmd)
|
||||||
p = subprocess.Popen(cmd, shell=True)
|
p = subprocess.run(cmd, shell=True)
|
||||||
else:
|
else:
|
||||||
fname = sg.Window('Files exporter',
|
fname = sg.Window('Files exporter',
|
||||||
[[sg.Text('Folder to export')],
|
[[sg.Text('Folder to export')],
|
||||||
@ -20,4 +20,6 @@ else:
|
|||||||
print(fname)
|
print(fname)
|
||||||
cmd = "python scripts/run.py " + str(fname)
|
cmd = "python scripts/run.py " + str(fname)
|
||||||
print(cmd)
|
print(cmd)
|
||||||
p = subprocess.Popen(cmd, shell=True)
|
p = subprocess.run(cmd, shell=True)
|
||||||
|
|
||||||
|
print("Done")
|
Loading…
Reference in New Issue
Block a user