Le 3 Mar 2005 02:53:51 -0800, [EMAIL PROTECTED] a écrit :
> 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 ??
import os
os.startfile("myFile.html")
# on windows only
> 
> Many thanks,
> 
>                Alex
> 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to