Issue 30451: parse windows path error in webbrowser.get() and lead to webbrowser.Error: could not locate runnable browser (original) (raw)

a bug when platform is not posix, lead to webbrowser.Error: could not locate runnable browser see below: import shlex shlex.split(r'C:\a\chrome.exe', comments=False, posix=True) ['C:achrome.exe'] shlex.split(r'C:\a\chrome.exe', comments=False, posix=False) ['C:\a\chrome.exe']