[Tutor] Any easy way to invoke the default browser on a specified URL?

Terry Carroll carroll at tjc.com
Tue May 10 02:28:15 CEST 2005


Is there any way, from within Python, to cause the default browser 
(Firefox, in my case) to be invoked with a specific URL?

I'd like to do something like (totally made-up name and syntax):

OpenBrowser("http://www.google.com/")

and have a new browser window opened up pointing to Google.

(Okay, the truth is, this is intended as a handy way of checking answers 
on the Python Challenge, but what the heck.)



More information about the Tutor mailing list