mirror of https://github.com/python/cpython.git
Address SF patch #485789 (Stefan Schwarzer).
$BROWSER should be split on os.pathsep, not on ":".
This commit is contained in:
parent
64b206c19e
commit
4b402f2074
|
@ -313,7 +313,7 @@ def open_new(self, url):
|
|||
if os.environ.has_key("BROWSER"):
|
||||
# It's the user's responsibility to register handlers for any unknown
|
||||
# browser referenced by this value, before calling open().
|
||||
_tryorder = os.environ["BROWSER"].split(":")
|
||||
_tryorder = os.environ["BROWSER"].split(os.pathsep)
|
||||
|
||||
for cmd in _tryorder:
|
||||
if not _browsers.has_key(cmd.lower()):
|
||||
|
|
Loading…
Reference in New Issue