[New-bugs-announce] [issue12237] how to open non defult browser?

de report at bugs.python.org
Thu Jun 2 11:14:02 CEST 2011

New submission from de <elydana at gmail.com>:

hi all,
I'm using win7, with Ff as default browser.
i wont to open url in other browser installed on my PC.
i tried:
url = 'http://www.google.com'
op = webbrowser.get('opera')

and i get this error:
Traceback (most recent call last):
  File "<pyshell#26>", line 1, in <module>
    op = webbrowser.get('opera')
  File "C:\Python27\lib\webbrowser.py", line 52, in get
    raise Error("could not locate runnable browser")
Error: could not locate runnable browser

can anyone help?

messages: 137469
nosy: hirsh
priority: normal
severity: normal
status: open
title: how to open non defult browser?

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list