[Tutor] os.startfile
Lang Hurst
lang at tharin.com
Sun Dec 19 20:59:19 CET 2010
I have the following in my program:
try:
os.startfile('current_credit.txt')
except:
os.system('/usr/bin/xdg-open current_credit.txt')
Basically, open a file in notepad if I'm on windows, vim if on my home
linux computer. It works fine in linux and in Windows through
virtualbox. The problem is when I take the program to work, it doesn't
open the file. The computers at work are pretty locked down, so I'm
thinking it has something to do with the os.startfile command. Are
there any alternative commands I could try?
--
There are no stupid questions, just stupid people.
More information about the Tutor
mailing list