[issue35593] Register standard browser: Chrome
Steve Dower
report at bugs.python.org
Wed Jan 9 19:02:46 EST 2019
Steve Dower <steve.dower at python.org> added the comment:
The patch won't work on my machine - "chrome[.exe]" is not on my PATH:
>>> import shutil
>>> shutil.which("chrome")
>>> import webbrowser
>>> webbrowser.register("chrome", None, webbrowser.BackgroundBrowser("chrome"))
>>> webbrowser.get("chrome")
<webbrowser.BackgroundBrowser object at 0x00000252203B40B8>
>>> webbrowser.get("chrome").open("https://stevedower.id.au/")
False
Perhaps this also requires an update to shutil.which() on Windows to inspect HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths?
----------
nosy: +steve.dower
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35593>
_______________________________________
More information about the Python-bugs-list
mailing list