why doesn't os.startfile() work in my linux box? [duplicate]
On Linux you can use:
import subprocess, sys
opener = "open" if sys.platform == "darwin" else "xdg-open"
subprocess.call([opener, filename])
Adopted from here
Given that you are not running on Windows you cannot use os.startfile
. If you want to launch another process you could use os.system
or look at the subprocess
module