Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-26 Thread Matej Cepl
On 2013-02-25, 03:37 GMT, llanitedave wrote: > url_link = "file:///" + fullpath Isn't this too many slashes. On Linux I get URI file:usr/share/doc/whatever.html which is just too many slashes (it should be three, two for the protocol, one for the root directory). Matěj -- http://m

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-25 Thread Terry Reedy
On 2/25/2013 1:26 AM, llanitedave wrote: On the other hand, it *is* a bit frustrating that Linux recognizes an html-style relative path, while Windows insists on the entire absolute path. Maybe we can call it a Windows bug, but a workaround would be nice to have. You can file an enhancement i

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread Chris Angelico
On Mon, Feb 25, 2013 at 5:26 PM, llanitedave wrote: > On the other hand, it *is* a bit frustrating that Linux recognizes an > html-style relative path, while Windows insists on the entire absolute path. > Maybe we can call it a Windows bug, but a workaround would be nice to have. That is, unfo

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread llanitedave
On Sunday, February 24, 2013 9:35:17 PM UTC-8, Terry Reedy wrote: > On 2/24/2013 4:35 AM, Chris Rebert wrote: > > > > > Sounds like this might be your problem: > > > http://bugs.python.org/issue8936 > > > > I just closed that issue an invalid. Here is most of what I wrote. > > ''' > > Afte

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread Terry Reedy
On 2/24/2013 3:28 PM, llanitedave wrote: http://bugs.python.org/issue8936 Holy Toledo! That's a two-year-old bug spanning two versions of the language! We need more volunteers who will do the kind of careful review of report, doc, and code I just did. Feel free to help. -- Terry Jan Ree

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread Terry Reedy
On 2/24/2013 4:35 AM, Chris Rebert wrote: Sounds like this might be your problem: http://bugs.python.org/issue8936 I just closed that issue an invalid. Here is most of what I wrote. ''' After reading the doc and the code, I am convinced that current behavior is close to the implied wanted beh

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread llanitedave
Well, we can mark this one as solved. Simple enough, actually -- thanks to Chris and Demian for leading me to water. The following code works on both Linux and Windows 7: def OnDocs(self, event): """Opens the User's Guide in the default web browser""" fullpath = os.path.abspath('

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread llanitedave
On Sunday, February 24, 2013 3:51:09 PM UTC-8, Demian Brecht wrote: > For the record, I completely misread and misunderstood the question. I > > should stop posting that late at night :P > > > > On Sun, Feb 24, 2013 at 1:25 AM, Demian Brecht wrote: > > > Rather than using a relative path, try

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread llanitedave
On Sunday, February 24, 2013 2:15:10 PM UTC-8, MRAB wrote: > On 2013-02-24 20:28, llanitedave wrote: > > > On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote: > > [snip] > > >> Sounds like this might be your problem: > > >> > > >> http://bugs.python.org/issue8936 > > >> > > >>

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread Demian Brecht
For the record, I completely misread and misunderstood the question. I should stop posting that late at night :P On Sun, Feb 24, 2013 at 1:25 AM, Demian Brecht wrote: > Rather than using a relative path, try using > webbrowser.open('{}/documentation/help.html'.format(os.path.dirname(__file__))).

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread MRAB
On 2013-02-24 20:28, llanitedave wrote: On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote: [snip] Sounds like this might be your problem: http://bugs.python.org/issue8936 The fix would seem to be ensuring that the URL you pass includes the scheme (in your case, "file:"). Hol

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread llanitedave
On Sunday, February 24, 2013 12:50:02 PM UTC-8, Mark Lawrence wrote: > On 24/02/2013 20:28, llanitedave wrote: > > > On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote: > > >> On Feb 24, 2013 1:21 AM, "llanitedave" wrote: > > >> > > >>> > > >> > > >>> I created an html help pa

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread llanitedave
On Sunday, February 24, 2013 12:48:40 PM UTC-8, Chris Rebert wrote: > On Sun, Feb 24, 2013 at 12:28 PM, llanitedave wrote: > > > On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote: > > >> On Feb 24, 2013 1:21 AM, "llanitedave" wrote: > > >> > I created an html help page for my P

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread Chris Rebert
On Sun, Feb 24, 2013 at 12:28 PM, llanitedave wrote: > On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote: >> On Feb 24, 2013 1:21 AM, "llanitedave" wrote: >> > I created an html help page for my Python 2.7.3 application and put it in >> > a documentation folder. I used webbrowse

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread Mark Lawrence
On 24/02/2013 20:28, llanitedave wrote: On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote: On Feb 24, 2013 1:21 AM, "llanitedave" wrote: I created an html help page for my Python 2.7.3 application and put it in a documentation folder. I used webbrowser.open() to fetch th

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread llanitedave
On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote: > On Feb 24, 2013 1:21 AM, "llanitedave" wrote: > > > > > > I created an html help page for my Python 2.7.3 application and put it in a > > documentation folder.  I used webbrowser.open() to fetch the page. > > > > > > On linu

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread Chris Rebert
On Feb 24, 2013 1:21 AM, "llanitedave" wrote: > > I created an html help page for my Python 2.7.3 application and put it in a documentation folder. I used webbrowser.open() to fetch the page. > > On linux -- KDE specifically, the command opens the local file on my default browser with no issues.

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread Demian Brecht
Rather than using a relative path, try using webbrowser.open('{}/documentation/help.html'.format(os.path.dirname(__file__))). On Sun, Feb 24, 2013 at 1:17 AM, llanitedave wrote: > I created an html help page for my Python 2.7.3 application and put it in a > documentation folder. I used webbrows

Re: webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread Chris Rebert
On Feb 24, 2013 1:21 AM, "llanitedave" wrote: > > I created an html help page for my Python 2.7.3 application and put it in a documentation folder. I used webbrowser.open() to fetch the page. > > On linux -- KDE specifically, the command opens the local file on my default browser with no issues.

webbrowser.open("./documentation/help.html")-- No Go in Windows

2013-02-24 Thread llanitedave
I created an html help page for my Python 2.7.3 application and put it in a documentation folder. I used webbrowser.open() to fetch the page. On linux -- KDE specifically, the command opens the local file on my default browser with no issues. However, on Windows 7, it opens Internet Explorer,