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: 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> <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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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, 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