Determining an operating system's default browser

Fuzzyman fuzzyman at gmail.com
Fri Feb 10 06:50:19 EST 2006


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.
>

The module webrowser module does this - and I use it for exactly this
purpose. :-)

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml

> Regards,
>
> John McMonagle
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.




More information about the Python-list mailing list