Steve Holden wrote: > Ron Adam wrote: >> [EMAIL PROTECTED] wrote: >>> On May 24, 5:03 pm, Ron Adam <[EMAIL PROTECTED]> 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.
Does it mangle the url in the same way? If so, then that would be enough to file a bug report. It's maybe not due to the webbrowser module it self, but maybe something else that's platform dependent? Can anyone else reproduce this? Ron -- http://mail.python.org/mailman/listinfo/python-list