starting windows program from python based on file extension ?

Duncan Booth duncan.booth at invalid.invalid
Thu Mar 3 06:21:35 EST 2005


 wrote:

> 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 ??

>>> import webbrowser
>>> webbrowser.open('test.html')




More information about the Python-list mailing list