On 25 May, 00:03, 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
Since %22 is the URL-encoded double-quote character ("), I can only imagine that something is quoting the URL for the shell, resulting in the following command: firefox '"http://www.python.org/"' Or something similar, at least. Firefox 1.5 seems to refuse to open such URLs, though. Paul -- http://mail.python.org/mailman/listinfo/python-list