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.
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor