how to startup the default web browser to open a url?

erinhouston at gmail.com erinhouston at gmail.com
Sun Jun 12 23:38:52 EDT 2005



flyaflya wrote:
> I want to startup the default web browser(ie...) to open a url, "execl"
> can open a process, but when the process exit, the other process will
> exit too, has any why to deal this problem?

You can do this with the win32aip module found in win32all
Home page
http://starship.python.net/crew/mhammond/win32/Downloads.html
files
http://sourceforge.net/project/showfiles.php?group_id=78018
example:
....import win32api
....a = win32api.ShellExecute(0,None,"www.ishpeck.net",None,None,1)

Hope that is of help

Erin




More information about the Python-list mailing list