By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,965 Members | 1,450 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,965 IT Pros & Developers. It's quick & easy.

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

P: n/a
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?
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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 want the 'webbrowser' module.

http://docs.python.org/lib/module-webbrowser.html

Will McGugan
--
http://www.willmcgugan.com
"".join({'*':'@','^':'.'}.get(c,0) or chr(97+(ord(c)-84)%26) for c in
"jvyy*jvyyzpthtna^pbz")
Jul 19 '05 #2

P: n/a


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/mham...Downloads.html
files
http://sourceforge.net/project/showf...group_id=78018
example:
.....import win32api
.....a = win32api.ShellExecute(0,None,"www.ishpeck.net",Non e,None,1)

Hope that is of help

Erin

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.