Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39880

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

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.026
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'subject:Windows': 0.09; '*is*': 0.09; 'path,': 0.09; 'path.': 0.09; 'bug,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'reliably': 0.16; 'workaround:': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'windows': 0.19; 'feb': 0.19; 'bit': 0.21; "i'd": 0.22; 'absolute': 0.23; 'linux': 0.24; 'header:In-Reply-To:1': 0.25; 'subject:skip:d 10': 0.27; 'message-id:@mail.gmail.com': 0.27; 'subject:/': 0.28; 'workaround': 0.29; 'maybe': 0.29; 'relative': 0.30; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'platforms,': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; '2013': 0.84; 'difference.': 0.84; 'approach.': 0.91; 'frustrating': 0.91; 'have.': 0.95; 'hand,': 0.97
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=w8GwVvi8TMmiDvoRf+jUuYjnglPMhA3YaqXyY4Qil2Q=; b=fbNhNxuDcC0qbuUoje47iRGZd2l2XMexi73/TbHY6c1PPRJGKE8wDrZu3YBdNHL5aH 0DlDMPL/0vhSJot2UFil00BTCDl2yLZm/YcebTXPQXMD372NAsUufLIh0nS0WymnoHSL 2VF3e7rc4nPxGcgiYL1UVJjTaArR8zqP5OjBbT5EXCtM4Ipcy8YKE1YIJmxwSxGjQosn p0Mn0pFUvvI8Rkprwk+nuXA0yQoF2hjuE5PpcqXbF6KmIKXBxmVsFtnOTqEOG1Ibw1fA Q0khlZOje+i5VRDl8PRG8NujLvFipQdqwVXxs0a72d/cvNx+0I506aVkdGvzfZo7ABNU s+0g==
MIME-Version 1.0
X-Received by 10.221.10.14 with SMTP id oy14mr8959967vcb.34.1361774245732; Sun, 24 Feb 2013 22:37:25 -0800 (PST)
In-Reply-To <8c651361-09b5-4954-b832-a46181cf60df@googlegroups.com>
References <659b4770-12fb-400f-8aa5-049605347fe2@googlegroups.com> <CAMZYqRRD-X1aXvsze0vQ4Czs332ig3qCgJ2v-tOLWsB=pfao5g@mail.gmail.com> <mailman.2488.1361770535.2939.python-list@python.org> <8c651361-09b5-4954-b832-a46181cf60df@googlegroups.com>
Date Mon, 25 Feb 2013 17:37:25 +1100
Subject Re: webbrowser.open("./documentation/help.html")-- No Go in Windows
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2493.1361774253.2939.python-list@python.org> (permalink)
Lines 12
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1361774253 news.xs4all.nl 6927 [2001:888:2000:d::a6]:32862
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:39880

Show key headers only | View raw


On Mon, Feb 25, 2013 at 5:26 PM, llanitedave <llanitedave@veawb.coop> 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, unfortunately, an all-too-common platform difference. But I'd
say that you do have that workaround:

> However, combined with os.path.abspath(), it's not a huge issue -- once we understand the approach.

If that works reliably on all platforms, I'd say that that's exactly
the nice-to-have that you describe.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

webbrowser.open("./documentation/help.html")--  No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 01:17 -0800
  Re: webbrowser.open("./documentation/help.html")-- No Go in Windows Chris Rebert <clp2@rebertia.com> - 2013-02-24 01:24 -0800
  Re: webbrowser.open("./documentation/help.html")-- No Go in Windows Demian Brecht <demianbrecht@gmail.com> - 2013-02-24 01:25 -0800
  Re: webbrowser.open("./documentation/help.html")-- No Go in Windows Chris Rebert <clp2@rebertia.com> - 2013-02-24 01:35 -0800
    Re: webbrowser.open("./documentation/help.html")-- No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 12:28 -0800
      Re: webbrowser.open("./documentation/help.html")-- No Go in Windows Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-02-24 20:50 +0000
        Re: webbrowser.open("./documentation/help.html")-- No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 13:06 -0800
        Re: webbrowser.open("./documentation/help.html")-- No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 13:06 -0800
      Re: webbrowser.open("./documentation/help.html")-- No Go in Windows Chris Rebert <clp2@rebertia.com> - 2013-02-24 12:48 -0800
        Re: webbrowser.open("./documentation/help.html")-- No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 13:04 -0800
        Re: webbrowser.open("./documentation/help.html")-- No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 13:04 -0800
      Re: webbrowser.open("./documentation/help.html")-- No Go in Windows MRAB <python@mrabarnett.plus.com> - 2013-02-24 22:15 +0000
        Re: webbrowser.open("./documentation/help.html")-- No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 17:03 -0800
        Re: webbrowser.open("./documentation/help.html")-- No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 17:03 -0800
      Re: webbrowser.open("./documentation/help.html")-- No Go in Windows Terry Reedy <tjreedy@udel.edu> - 2013-02-25 00:36 -0500
    Re: webbrowser.open("./documentation/help.html")-- No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 12:28 -0800
  Re: webbrowser.open("./documentation/help.html")-- No Go in Windows Demian Brecht <demianbrecht@gmail.com> - 2013-02-24 15:51 -0800
    Re: webbrowser.open("./documentation/help.html")-- No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 18:26 -0800
    Re: webbrowser.open("./documentation/help.html")-- No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 18:26 -0800
  Re: webbrowser.open("./documentation/help.html")--  No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 19:37 -0800
    Re: webbrowser.open("./documentation/help.html")--  No Go in Windows Matej Cepl <mcepl@redhat.com> - 2013-02-26 14:15 +0100
  Re: webbrowser.open("./documentation/help.html")-- No Go in Windows Terry Reedy <tjreedy@udel.edu> - 2013-02-25 00:35 -0500
    Re: webbrowser.open("./documentation/help.html")-- No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 22:26 -0800
      Re: webbrowser.open("./documentation/help.html")-- No Go in Windows Chris Angelico <rosuav@gmail.com> - 2013-02-25 17:37 +1100
      Re: webbrowser.open("./documentation/help.html")-- No Go in Windows Terry Reedy <tjreedy@udel.edu> - 2013-02-25 06:10 -0500
    Re: webbrowser.open("./documentation/help.html")-- No Go in Windows llanitedave <llanitedave@veawb.coop> - 2013-02-24 22:26 -0800

csiph-web