Aug-01-2019, 07:35 AM
I'd like to test this but I don't have a windows computer at home (the first thing I do when I purchase a new computer is erase the Windows OS), so can someone tell me what happens when you call os.startfile on a python program
I'm trying to obtain something similar to calling
import os os.startfile("spam.py")Does this open an editor with spam.py ready for editing, as I'm expecting it does or does it run spam.py or does it depend on the windows configuration?
I'm trying to obtain something similar to calling
xdg-open spam.py
in linux.