[Python-bugs-list] [ python-Bugs-687607 ] In some OSes BROWSER env var not used as webbrowser expects

SourceForge.net noreply@sourceforge.net
Sun, 16 Feb 2003 12:28:59 -0800


Bugs item #687607, was opened at 2003-02-16 14:28
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=687607&group_id=5470

Category: Python Library
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthew Cowles (mdcowles)
Assigned to: Nobody/Anonymous (nobody)
Summary: In some OSes BROWSER env var not used as webbrowser expects

Initial Comment:
[From a post on python-help]

It appears that in at least some installations of KDE
under Mandrake, the BROWSER environment variable is set
but doesn't contain names of executable browsers. Since
BROWSER overrides everything that webbrowser.py has
found, the module doesn't work in that case. I believe
that it would be sufficient to change

    _tryorder = os.environ["BROWSER"].split(os.pathsep)

to

    _tryorder =
os.environ["BROWSER"].split(os.pathsep)+_tryorder

to make it work for those users.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=687607&group_id=5470