I have the following python code:
os.system(\"C:/Python27/python.exe C:/GUI/TestGUI.py\") sys.exit(0)
It runs the command fine, and a window po
instead of os.system use subprocess.Popen
os.system
subprocess.Popen
this runs a command and doesn't wait for it and then exits:
import subprocess import sys subprocess.Popen(["mupdf", "/home/dan/Desktop/Sieve-JFP.pdf"]) sys.exit(0)
note that os.system(command) like:
os.system(command)
p = subprocess.Popen(command) p.wait()