E
Eric_Dexter
#this should be a cross platform example of os.startfile ( startfile )
#for windows and linux. this is the first version and
#linux, mac, other os's commands for exceptions to the
#rule would be appreciated. at some point this will be
#in the dex tracker project.
import os
import subprocess
def startfile(filename)
try:
os.startfile(filename)
except:
subprocess.Popen(['xdg-open', filename])
_______________________________
http://dextracker.blogspot.com/
#for windows and linux. this is the first version and
#linux, mac, other os's commands for exceptions to the
#rule would be appreciated. at some point this will be
#in the dex tracker project.
import os
import subprocess
def startfile(filename)
try:
os.startfile(filename)
except:
subprocess.Popen(['xdg-open', filename])
_______________________________
http://dextracker.blogspot.com/