Author ezio.melotti
Recipients eric.araujo, ezio.melotti, georg.brandl, orsenthil, terry.reedy
Date 2013-02-27.03:49:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361936961.72.0.345637201366.issue10799@psf.upfronthosting.co.za>
In-reply-to
Content
On WinXP, if I try "firefox bugs.python.org", I get an error because it can not find firefox in the PATH.  This is probably what happens with _isexecutable("firefox").
However if I try "C:\Program Files\Mozilla Firefox\>firefox.exe bugs.python.org", Firefox correctly opens the page.

So I think that the problem here is not that the browser fails to open "bugs.python.org" or "google.com", but that the executable of the browser is not found, and whatever is used to open "bugs.python.org" (os.startfile()?) doesn't know that it should be opened with Firefox.

> In the longer run, what I would really like is for webbrowser to be
> better at using the default or finding executables.

I haven't looked at the code, but, if reasonable, it should search in some common folders for the executables of the supported browsers.

Should I create a separate issue for this?  If this solution is not viable, we can always document that the URLs have to start with 'http://' or 'www.'.
History
Date User Action Args
2013-02-27 03:49:21ezio.melottisetrecipients: + ezio.melotti, georg.brandl, terry.reedy, orsenthil, eric.araujo
2013-02-27 03:49:21ezio.melottisetmessageid: <1361936961.72.0.345637201366.issue10799@psf.upfronthosting.co.za>
2013-02-27 03:49:21ezio.melottilinkissue10799 messages
2013-02-27 03:49:21ezio.melotticreate