I've seen a few questions related to this, but I'm still having trouble.
Running the code:
>>>webbrowser.get('firefox')
errors with:
webbrowser.Error: could not locate runnable browser
To troubleshoot I ran:
>>>print(webbrowser._browser)
{'windows-default': [<class 'webbrowser.WindowsDefault'>, None], 'c:\\program files\\internet explorer\\iexplorer.exe': [None, <webbrowser.BackgroundBrowser object at 0x000000000651FEB8>]}
The odd thing is that I have Firefox installed, it is my default browser, and the HTML file I'm trying to opens through Python, opens with Firefox.
All would be right with the world except I need to send this program out to people who likely have IE set as their Windows default, and the HTML file has to be opened in Firefox.