Feb-04-2017, 09:10 PM
Hi everyone I am trying to write a very very simple python script that opens up a .py file on my desktop using import os
this is what the script looks like in the shell:
import os
os.startfile("c:\Users\Trey\Desktop\Vote.py")
The problem with this scrip is it will find the file and open it, but it will close as soon as it opens.
This idea is that this scrip will find the vote.py file and open it so it will run. Whenever it does find it, it wont run b/c it closes as soon as it opens.
Please help! Thanks!
this is what the script looks like in the shell:
import os
os.startfile("c:\Users\Trey\Desktop\Vote.py")
The problem with this scrip is it will find the file and open it, but it will close as soon as it opens.
This idea is that this scrip will find the vote.py file and open it so it will run. Whenever it does find it, it wont run b/c it closes as soon as it opens.
Please help! Thanks!