webbrowser module's Firefox support

MonkeeSage MonkeeSage at gmail.com
Sat Sep 23 20:36:51 EDT 2006


Dustan wrote:
> That didn't work either.

Well, I'm out of ideas. It's also odd that it was being read as
webbrowser.BackgroundBrowser...whatever that is! It should have been
webbrowser.Mozilla.

> Another thing: your fix is only temporary. Is there a way to make it
> work even after I close IDLE? I changed the command you gave me a bit
> so it doesn't get rid of the other paths:
>
> os.environ["PATH"]+=";C:\Program Files\Mozilla Firefox;" # can't
> remember the path for firefox right now...
>
> But either way, it ends up going right back to the previous value after
> I close IDLE.

Yeah, sorry about that, I meant to mention that changes to os.environ
only last for the life of the python process. To set / change
environment variables like PATH permanently, check out this page:
http://www.cims.nyu.edu/systems/platforms/windows/setpath.html

Regards,
Jordan




More information about the Python-list mailing list