Opening a file with system default application

BartlebyScrivener rpdooling at gmail.com
Fri Jun 23 12:32:23 EDT 2006


don't know Jython, but in Python, I think you want:

import os

os.system('mytextfile.txt')

Whatever file you reference should open in the application associated
with it. At least that's the way it works on Win XP

rd




More information about the Python-list mailing list