starting windows program from python based on file extension ?

kowald at molgen.mpg.de kowald at molgen.mpg.de
Thu Mar 3 05:53:51 EST 2005


Hi everybody,

I used python to build a HTML file and now I would like to
automatically start my browser to display this file. I guess I could
use os.system(), but then I had to specify a specific path to the
browser.

I wonder if it is possible to tell windows to open "myFile.html" using
the program that is registered to open html files (similar to double
clicking on the file).

Any idea how to do that from python ??

Many thanks,

               Alex




More information about the Python-list mailing list