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


Groups > comp.lang.python > #39740

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

Return-Path <chris@rebertia.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Windows': 0.09; 'python': 0.09; 'fetch': 0.09; 'snippet': 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; 'windows': 0.19; 'feb': 0.19; 'cheers,': 0.23; 'cc:2**0': 0.23; '&gt;': 0.23; 'linux': 0.24; 'command': 0.24; '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; 'code': 0.31; '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; '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; 'provide': 0.62; 'search,': 0.65; 'internet': 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=GqBLkweCVwVF6HjWruJ43j4rivBAa86pA1+bo2eSpL8=; b=E+97qnaQH69l1UBDtIxnX/+cHqFKBiURFt4XKPyZxUgtTWr1jxsM9CB9Qpv67AjmCh zk4wiKcRVg7As60Q6KqAyZlRfBpFOXyeAeqb7X3LOaLL+Kd34l4XUjxxZjRL6X5DFGiw dtHAWnSu/9G6GTcBNOk3KAehCjqWcJw3bwH70=
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=GqBLkweCVwVF6HjWruJ43j4rivBAa86pA1+bo2eSpL8=; b=U+/QM99VNmFqs/PY10zuohYBJurcJVo8SnyqXf100VXApa3NNAHdAfTiHKTKtDt4Dn kmutHmLz4ru/yrgTfy997pGjPOj8EIqfvYifIOsoR0HVsG92yNA5ai+gztloRiic0sud zUAdTnVSIKwJaW8jxCDuqEXPLkYbeEu/iEsxP85SBIqJe/kAhKql043YYTUEGqWjq82C tgQhuV5T3TvotzKlTkmdzBplhW0MwBumvKRZQnKdPPtf5C4H/uW1h/sT8fG+1EFqBCdm ndPlancXi0NN1MDCsqVHiD3OE8D73dFMS7lKRZHuMpIv/LwSQ1kauC7LX+efui+r+m1D kkTA==
MIME-Version 1.0
X-Received by 10.50.76.168 with SMTP id l8mr1755949igw.97.1361697889772; Sun, 24 Feb 2013 01:24:49 -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:24:49 -0800
X-Google-Sender-Auth GlAPXMIEAHUOXKYu4tw6NWgb4gM
Subject Re: webbrowser.open("./documentation/help.html")-- No Go in Windows
From Chris Rebert <clp2@rebertia.com>
To llanitedave <llanitedave@veawb.coop>
Content-Type multipart/alternative; boundary=e89a8f3bae0f0300c604d674ffb8
X-Gm-Message-State ALoCoQnj5Okh3M+bJds/47aR302WDRzBwYe0ZTKYl4v+2jscxgRPD6emV7wS+gUNwMeLCMb8nxol
Cc Python <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 <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.2399.1361697898.2939.python-list@python.org> (permalink)
Lines 53
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1361697898 news.xs4all.nl 6869 [2001:888:2000:d::a6]:58436
X-Complaints-To abuse@xs4all.nl
Path csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder5.xlned.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Xref csiph.com comp.lang.python:39740

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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.  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?

Please provide the exact code snippet that you're using.

Cheers,
Chris

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