Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Windows': 0.09; 'python': 0.09; 'fetch': 0.09; 'path,': 0.09; 'to:addr:comp.lang.python': 0.09; 'url:github': 0.09; 'useless': 0.09; 'cc:addr:python-list': 0.10; 'advance': 0.10; 'properly': 0.15; '2.7.3': 0.16; '24,': 0.16; 'chris,': 0.16; 'chrome,': 0.16; 'folder,': 0.16; 'folder.': 0.16; 'record,': 0.16; 'track.': 0.16; 'two.': 0.16; 'windows?': 0.16; 'wrote:': 0.17; 'windows': 0.19; 'feb': 0.19; 'question.': 0.20; 'cc:2**1': 0.24; 'linux': 0.24; 'command': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'subject:skip:d 10': 0.27; "doesn't": 0.28; 'subject:/': 0.28; 'issues.': 0.29; 'url:mailman': 0.29; 'relative': 0.30; 'url:python': 0.32; 'file': 0.32; 'url:listinfo': 0.32; 'getting': 0.33; 'goes': 0.33; 'page.': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'returning': 0.35; 'so,': 0.35; 'open': 0.35; 'posting': 0.35; 'received:209.85': 0.35; 'created': 0.36; 'but': 0.36; 'url:org': 0.36; 'should': 0.36; 'does': 0.37; 'late': 0.37; 'rather': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'nothing': 0.38; 'page': 0.38; 'google': 0.39; 'application': 0.40; 'help': 0.40; 'url:mail': 0.40; 'think': 0.40; "you've": 0.61; 'back': 0.62; 'night': 0.62; 'between': 0.63; 'search,': 0.65; 'hour': 0.69; 'internet': 0.71; '2013': 0.84; 'start.': 0.84 X-Received: by 10.49.106.131 with SMTP id gu3mr103876qeb.36.1361759212772; Sun, 24 Feb 2013 18:26:52 -0800 (PST) Newsgroups: comp.lang.python Date: Sun, 24 Feb 2013 18:26:52 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=99.162.129.213; posting-account=aw7wEQoAAACnaP8vftI9MyiC9NfXNJyr References: <659b4770-12fb-400f-8aa5-049605347fe2@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 99.162.129.213 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: llanitedave , 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: , Message-ID: Lines: 73 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361759222 news.xs4all.nl 6889 [2001:888:2000:d::a6]:33468 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39864 On Sunday, February 24, 2013 3:51:09 PM UTC-8, Demian Brecht wrote: > For the record, I completely misread and misunderstood the question. I >=20 > should stop posting that late at night :P >=20 >=20 >=20 > On Sun, Feb 24, 2013 at 1:25 AM, Demian Brecht w= rote: >=20 > > Rather than using a relative path, try using >=20 > > webbrowser.open('{}/documentation/help.html'.format(os.path.dirname(__f= ile__))). >=20 > > >=20 > > On Sun, Feb 24, 2013 at 1:17 AM, llanitedave w= rote: >=20 > >> 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. >=20 > >> >=20 > >> On linux -- KDE specifically, the command opens the local file on my d= efault browser with no issues. However, on Windows 7, it opens Internet Ex= plorer, which doesn't even search the local folder, but goes straight to th= e web and does a Google search, returning nothing but useless noise. >=20 > >> >=20 > >> My default browser on Windows is Chrome, so my intention is getting un= dermined right from the start. >=20 > >> >=20 > >> How do I get a local html file to open properly from Python in Windows= ? >=20 > >> -- >=20 > >> http://mail.python.org/mailman/listinfo/python-list >=20 > > >=20 > > >=20 > > >=20 > > -- >=20 > > Demian Brecht >=20 > > http://demianbrecht.github.com >=20 >=20 >=20 >=20 >=20 >=20 >=20 > -- >=20 > Demian Brecht >=20 > http://demianbrecht.github.com Well, between you and Chris, I think you've got me on the right track. If = things keep going like they are now, I should have it back under control in= an hour or two. So, thanks in advance for all of you!