How I should call webbrowser.get() function so I open the chrome web browser? I’m running Ubuntu 11.04 and Python version 2.7.
Using webbrowser.get(‘chrome’) yields an error.
How I should call webbrowser.get() function so I open the chrome web browser? I’m
Share
The quick workaround is to make Chrome the default browser in your system and then use simply webbrowser.get(). I’ve just checked that on ubuntu 10.10 and it worked just fine.
EDIT
Just reviewed the code of /usr/lib/python2.6/webbrowser.py. You should do like this:
I.e. having ‘%s’ in get()’s parameter is the key feature.