use subprocess.Popen instead of os.system
the command is executed and does not 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:
p = subprocess.Popen(command) p.wait()
Dan D.
source share