webbrowser module's Firefox support

MonkeeSage MonkeeSage at gmail.com
Sat Sep 23 18:57:12 EDT 2006


Dustan wrote:
> I did do a search here, but came up empty-handed. Can anyone tell me
> how to get the webbrowser module to recognize firefox's existence,
> given this information?

Looks like it is checking %PATH% for firefox.exe. Try:

>>> import os
>>> os.environ["PATH"] = r"C:\Program Files\Mozilla Firefox;"
>>> import webbrowser
>>> webbrowser._browsers 

Regards,
Jordan




More information about the Python-list mailing list