Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:file': 0.07; 'cc:addr:python-list': 0.11; '24,': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'wed,': 0.18; 'import': 0.22; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'sep': 0.31; 'file': 0.32; 'supposed': 0.32; 'url:python': 0.33; 'maybe': 0.34; 'subject:the': 0.34; 'subject:with': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'subject:can': 0.39; 'url:mail': 0.40; 'to:addr:gmail.com': 0.65; 'skip:w 30': 0.69 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=BvXcyMC4TwnonMyqiIxuZGrFfs96aTMckmraJhHog9w=; b=ECCC1UCHJHyjPyN7bn666LRNeu7t2V8qtQidooAcX2uWlUrV8rM5bNgeFcvzLMf8gK LS4aywFJqAvRO86hmRzSq2tzt0W6Gj7Az3hl9+JqevkR3ebgHcOatHQbD8g9UwrS21RA 1Q1nIGEGeDfqIkzFvVO721+oMQyYhP7WI8m0xGH6gMXOHp9UaXK8O6Bcv7Mi6azgf03S dx1MSMI0g5drFwiISd4eXiJy16z/hRXmwgAqInVwHrgELBiuIfx41dCa9FFUhygzSycj VeQPrk+Io0O3etah3HGy6+gIhgW0jMVbPwMgY3NViR3iGJGfqvXGQ1RB6DZjgBR1LHi+ NKXA== MIME-Version: 1.0 X-Received: by 10.50.109.228 with SMTP id hv4mr31043592igb.13.1411558280247; Wed, 24 Sep 2014 04:31:20 -0700 (PDT) Sender: skip.montanaro@gmail.com In-Reply-To: <54228F92.90409@gmail.com> References: <54228F92.90409@gmail.com> Date: Wed, 24 Sep 2014 06:31:20 -0500 X-Google-Sender-Auth: ooaXOD013WpvFZx8faI0tpqcUdI Subject: Re: why can't open the file with browser? From: Skip Montanaro To: luofeiyu Content-Type: multipart/alternative; boundary=089e013a214edfc1690503ce05d7 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: 62 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1411558289 news.xs4all.nl 2896 [2001:888:2000:d::a6]:55968 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78274 --089e013a214edfc1690503ce05d7 Content-Type: text/plain; charset=UTF-8 Maybe it's supposed to be file://localhost/test.html ? Just a guess, as I don't use Windows. Skip On Wed, Sep 24, 2014 at 4:32 AM, luofeiyu wrote: > > import webbrowser > webbrowser.open('f:\\test.html') > > why the file f:\\test.html is opened by notepad ,not by my firefox or chrome? > > > > > -- > https://mail.python.org/mailman/listinfo/python-list > > --089e013a214edfc1690503ce05d7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Maybe it's supposed to be

file://lo= calhost/test.html

? Just a guess, as I don't u= se Windows.

Skip


On Wed, Sep 24, 2014 at = 4:32 AM, luofeiyu <elearn2014@gmail.com> wrote:
=20 =20 =20

import webbrowser
webbrowser.open('f:\\test.html')

why the file f:\\test.html is opened by notepad ,not by my firefox or chrom=
e?



--
https://mail.python.org/mailman/listinfo/python-list


--089e013a214edfc1690503ce05d7--