webbrowser module bug?

Steve Holden steve at holdenweb.com
Fri May 25 12:41:28 EDT 2007


Ron Adam wrote:
> kyosohma at gmail.com wrote:
>> 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?
> 
> It works for me on python 2.4 also, but not on later versions.
> 
> Looks like I'll need to try to test the url at the point where it calls the 
> browser from webbrowser.py.
> 
> Can someone else test this on python 2.5?
> 
On my Windows laptop it works on 2.4.1 and 2.5.1 native, but not on 
2.5.1 for Cygwin.

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
------------------ Asciimercial ---------------------
Get on the web: Blog, lens and tag your way to fame!!
holdenweb.blogspot.com        squidoo.com/pythonology
tagged items:         del.icio.us/steve.holden/python
All these services currently offer free registration!
-------------- Thank You for Reading ----------------




More information about the Python-list mailing list