webbrowser module bug?

kyosohma at gmail.com kyosohma at gmail.com
Fri May 25 11:19:44 EDT 2007


On May 24, 5:03 pm, Ron Adam <r... at ronadam.com> wrote:
> Is anyone else having problems with the webbrowser module?
>
> Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25)
> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import webbrowser
>  >>> webbrowser.open('http://www.python.org')
> True
>  >>>
>
> It opens firefox as expected, but the url is ...
>
>       file:///home/ron/%22http://www.python.org%22
>
> Which of course doesn't do what is expected.
>
> Any ideas?
>
> Ron

I don't know. This works for me with Python 2.4 on Windows XP SP2. The
docs don't say much (http://docs.python.org/lib/module-
webbrowser.html). Maybe it would be beneficial to read the module's
code? Or use the "register" command manually?

Mike




More information about the Python-list mailing list