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
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
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
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
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
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
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('
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
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
>
> >>
>
> >>
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__))).
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
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
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
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
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
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
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.
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
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.
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,
20 matches
Mail list logo