Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'problem:': 0.07; 'subject:Windows': 0.09; 'python': 0.09; 'fetch': 0.09; 'lawrence': 0.09; 'to:addr:comp.lang.python': 0.09; 'useless': 0.09; 'bug': 0.10; 'cc:addr:python-list': 0.10; 'properly': 0.15; '2.7.3': 0.16; '24,': 0.16; 'bug,': 0.16; 'chrome,': 0.16; 'downside': 0.16; 'fatal': 0.16; 'folder,': 0.16; 'folder.': 0.16; 'holy': 0.16; 'illustrates': 0.16; 'windows?': 0.16; 'wrote:': 0.17; 'fix': 0.17; '"you': 0.17; '(in': 0.18; '>>>': 0.18; 'windows': 0.19; 'feb': 0.19; 'versions': 0.20; 'cheers,': 0.23; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'url:bugs': 0.24; 'linux': 0.24; 'command': 0.24; 'pass': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'am,': 0.27; 'guess': 0.27; 'subject:skip:d 10': 0.27; "doesn't": 0.28; 'correct': 0.28; 'subject:/': 0.28; 'chris': 0.28; 'issues.': 0.29; 'case,': 0.29; 'url:python': 0.32; 'file': 0.32; 'getting': 0.33; 'goes': 0.33; 'page.': 0.33; 'correctly.': 0.33; 'received:google.com': 0.34; 'returning': 0.35; 'open': 0.35; 'received:209.85': 0.35; 'created': 0.36; 'but': 0.36; 'url:org': 0.36; 'should': 0.36; 'does': 0.37; 'two': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'some': 0.38; 'nothing': 0.38; 'page': 0.38; 'takes': 0.39; 'google': 0.39; 'application': 0.40; 'skip:" 10': 0.40; 'help': 0.40; 'think': 0.40; 'your': 0.60; 'pays': 0.62; 'search,': 0.65; 'internet': 0.71; 'obvious': 0.71; 'sounds': 0.71; 'day': 0.73; '2013': 0.84; 'language!': 0.84; 'start.': 0.84 X-Received: by 10.49.24.80 with SMTP id s16mr563445qef.35.1361739982847; Sun, 24 Feb 2013 13:06:22 -0800 (PST) Newsgroups: comp.lang.python Date: Sun, 24 Feb 2013 13:06:22 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.162.99.34; posting-account=aw7wEQoAAACnaP8vftI9MyiC9NfXNJyr References: <659b4770-12fb-400f-8aa5-049605347fe2@googlegroups.com> <5fbb36fe-a2b3-4ea6-a42e-53d46845865e@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 66.162.99.34 MIME-Version: 1.0 Subject: Re: webbrowser.open("./documentation/help.html")-- No Go in Windows From: llanitedave To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: , Message-ID: Lines: 100 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361739992 news.xs4all.nl 6895 [2001:888:2000:d::a6]:45846 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39797 On Sunday, February 24, 2013 12:50:02 PM UTC-8, Mark Lawrence wrote: > On 24/02/2013 20:28, llanitedave wrote: >=20 > > On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote: >=20 > >> On Feb 24, 2013 1:21 AM, "llanitedave" wrote: >=20 > >> >=20 > >>> >=20 > >> >=20 > >>> I created an html help page for my Python 2.7.3 application and put i= t in a documentation folder. I used webbrowser.open() to fetch the page. >=20 > >> >=20 > >>> >=20 > >> >=20 > >>> On linux -- KDE specifically, the command opens the local file on my = default browser with no issues. However, on Windows 7, it opens Internet E= xplorer, which doesn't even search the local folder, but goes straight to t= he web and does a Google search, returning nothing but useless noise. >=20 > >> >=20 > >> >=20 > >>> >=20 > >> >=20 > >>> My default browser on Windows is Chrome, so my intention is getting u= ndermined right from the start. >=20 > >> >=20 > >>> >=20 > >> >=20 > >>> How do I get a local html file to open properly from Python in Window= s? >=20 > >> >=20 > >> Sounds like this might be your problem: >=20 > >> >=20 > >> http://bugs.python.org/issue8936 >=20 > >> >=20 > >> The fix would seem to be ensuring that the URL you pass includes the s= cheme (in your case, "file:"). >=20 > >> >=20 > >> Cheers, >=20 > >> >=20 > >> Chris >=20 > > >=20 > > Holy Toledo! That's a two-year-old bug spanning two versions of the la= nguage! >=20 >=20 >=20 > Only two years is nothing. Pay your money, take your choice :) >=20 >=20 >=20 > > This to me illustrates the downside of the Python philosophy of "There = should be only one obvious way to do things". If that one obvious way has = a fatal bug, you're pretty much SOL. >=20 >=20 >=20 > Misquoted as always. I guess that some day someone will quote it correct= ly. >=20 >=20 >=20 > --=20 >=20 > Cheers. >=20 >=20 >=20 > Mark Lawrence I think the correct quote is "You pays your money, and you takes your chanc= es". ;)