Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'problem:': 0.07; 'subject:Windows': 0.09; 'python': 0.09; 'fetch': 0.09; 'useless': 0.09; 'cc:addr:python-list': 0.10; 'properly': 0.15; '2.7.3': 0.16; '24,': 0.16; 'chrome,': 0.16; 'folder,': 0.16; 'folder.': 0.16; 'windows?': 0.16; '\xc2\xa0i': 0.16; 'wrote:': 0.17; 'fix': 0.17; '(in': 0.18; 'windows': 0.19; 'feb': 0.19; 'cheers,': 0.23; 'cc:2**0': 0.23; '>': 0.23; '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; 'am,': 0.27; 'subject:skip:d 10': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'subject:/': 0.28; 'chris': 0.28; 'issues.': 0.29; 'case,': 0.29; 'skip:& 10': 0.29; 'url:python': 0.32; 'file': 0.32; 'getting': 0.33; 'goes': 0.33; 'page.': 0.33; 'skip:& 20': 0.33; 'received:google.com': 0.34; 'returning': 0.35; 'open': 0.35; 'created': 0.36; 'but': 0.36; 'url:org': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'nothing': 0.38; 'page': 0.38; 'google': 0.39; 'application': 0.40; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'help': 0.40; 'your': 0.60; 'search,': 0.65; 'internet': 0.71; 'sounds': 0.71; '2013': 0.84; 'sender:addr:chris': 0.84; 'start.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=lNU1Hej114HbWW8Z3P3wJIaceFlZnD16ZnzmuHsTQwY=; b=Me5HJj1nYb5OzDcy+bwyhQe8F1cM4r+go/dpb9a6kVCVCpPKYhqZT9NjImWZUNmiDf A1NUbbMbqrswyzoGS+pH9FBRBVW/VAvw5MtBS2P6VLdtHboocqMrz/bH65FKUljvS5Ik VKboAldC8XIPY3NdPeYJivL47jojRf6KxocSg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=lNU1Hej114HbWW8Z3P3wJIaceFlZnD16ZnzmuHsTQwY=; b=jkM9INbRjmITyH3u5B2JYAwc9wiw1Q3E21PR9mBQQRg1g9vOhH4DtaAVs+6T0HNZ3w bCMQg+iw6IceeGFcERn/qf5KYpuZWTTl0JM1MeSYZH1yBblWuDgp/YSSxIT8H8Se2i1f F5qkrKPmfB+h8XrU3cm+46dRfzdJkkv5OciGu19U1Y4oYDI6qdt+tfgJApfyTgZdViqh PcGIX4+aNPU0zuuESFIpXXezdSvI4rD7FWN3D7GMFs/j0MCEJeTypc92N6UmeRUhPv65 g0NLuljYCAtsR/zNneKHvbMs/ofQBCZEao17nxrC8b72sOVpsB6nCQ6vsfcdUTGLCN36 CpBA== MIME-Version: 1.0 X-Received: by 10.42.189.199 with SMTP id df7mr2981564icb.16.1361698531654; Sun, 24 Feb 2013 01:35:31 -0800 (PST) Sender: chris@rebertia.com In-Reply-To: <659b4770-12fb-400f-8aa5-049605347fe2@googlegroups.com> References: <659b4770-12fb-400f-8aa5-049605347fe2@googlegroups.com> Date: Sun, 24 Feb 2013 01:35:31 -0800 X-Google-Sender-Auth: Ut0tic8i0wdufaTnb2hFJ-a5BBE Subject: Re: webbrowser.open("./documentation/help.html")-- No Go in Windows From: Chris Rebert To: llanitedave Content-Type: multipart/alternative; boundary=485b397dd0db45643c04d6752525 X-Gm-Message-State: ALoCoQlJve8X4CkMl4rVLPeyYa/B14hK86NWlrLJHTp+SjjdMgIL+thVLFWc2I5IrTH5/W8xe3MM Cc: Python 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: 60 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361698540 news.xs4all.nl 6967 [2001:888:2000:d::a6]:35913 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!nntp.giganews.com!news.osn.de!diablo2.news.osn.de!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:39742 --485b397dd0db45643c04d6752525 Content-Type: text/plain; charset=UTF-8 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. However, on Windows 7, it opens Internet Explorer, which doesn't even search the local folder, but goes straight to the web and does a Google search, returning nothing but useless noise. > > My default browser on Windows is Chrome, so my intention is getting undermined right from the start. > > How do I get a local html file to open properly from Python in Windows? 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:"). Cheers, Chris --485b397dd0db45643c04d6752525 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Feb 24, 2013 1:21 AM, "llanitedave" <llanitedave@veawb.coop> wrote: >
> I created an html help page for my Python 2.7.3 application and put it= in a documentation folder. =C2=A0I used webbrowser.open() to fetch the pag= e.
>
> On linux -- KDE specifically, the command opens the local file on my d= efault browser with no issues. =C2=A0However, on Windows 7, it opens Intern= et Explorer, which doesn't even search the local folder, but goes strai= ght to the web and does a Google search, returning nothing but useless nois= e.
>
> My default browser on Windows is Chrome, so my intention is getting un= dermined right from the start.
>
> How do I get a local html file to open properly from Python in Windows= ?

Sounds like this might be your problem:
http://bugs.python.org/issue89= 36

The fix would seem to be ensuring that the URL you pass incl= udes the scheme (in your case, "file:").

Cheers,
Chris

--485b397dd0db45643c04d6752525--