faqts : Computers : Programming : Languages : Python : Snippets : Web Programming / Manipulating HTML files

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

10 of 13 people (77%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

Starting browser from Python (was: Need help with HTML files)

Jul 5th, 2000 10:03
Nathan Wallace, unknown unknown, Hans Nowak, Snippet 332, Thomas Heller


"""
Packages: operating_systems.windows
"""
"""
> i would like to open a local html file from within python,
> When the html is opened, it should be opened like if you double click
> on the filename, so it uses the know filetype from windows.
>
> in short , when someone has netscape as the default browser.
> I open the html file python should call the html file , and windows
> opens the default browser with the file as argument.
"""
import os
os.system ("start c:\\myfile.html")