Determining an operating system's default browser

Larry Bates larry.bates at websafe.com
Thu Feb 9 18:53:05 EST 2006


You don't have to determine it.  Just os.startfile('page1.html')
and let the OS figure it out.

-Larry Bates


John McMonagle wrote:
> Is there a python module which can determine an operating system's
> default web browser application.
> 
> I would like to use it in the following context:  I have a GUI
> application where all the documentation is written as html pages.  I
> wish to have these html help pages open in the default browser when
> selected from the application's Help menu
> 
> If python can determine the path to the default browser, I can then just
> spawn it.
> 
> Regards,
> 
> John McMonagle
> 
> 
> 
> 



More information about the Python-list mailing list