Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b402f2

Browse files
committed
Address SF patch #485789 (Stefan Schwarzer).
$BROWSER should be split on os.pathsep, not on ":".
1 parent 64b206c commit 4b402f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/webbrowser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def open_new(self, url):
313313
if os.environ.has_key("BROWSER"):
314314
# It's the user's responsibility to register handlers for any unknown
315315
# browser referenced by this value, before calling open().
316-
_tryorder = os.environ["BROWSER"].split(":")
316+
_tryorder = os.environ["BROWSER"].split(os.pathsep)
317317

318318
for cmd in _tryorder:
319319
if not _browsers.has_key(cmd.lower()):

0 commit comments

Comments
 (0)