webbrowser module's Firefox support

Dustan DustanGroups at gmail.com
Sat Sep 23 21:18:18 EDT 2006


MonkeeSage wrote:
> 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.

Thanks anyway; you have helped me tremendously. I'm sure I'll get
somewhere with this...

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

Great! Thanks!

> Regards,
> Jordan




More information about the Python-list mailing list