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


Groups > comp.lang.python > #78274

Re: why can't open the file with browser?

References <54228F92.90409@gmail.com>
Date 2014-09-24 06:31 -0500
Subject Re: why can't open the file with browser?
From Skip Montanaro <skip@pobox.com>
Newsgroups comp.lang.python
Message-ID <mailman.14306.1411558289.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

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 <elearn2014@gmail.com> 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
>
>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: why can't open the file with browser? Skip Montanaro <skip@pobox.com> - 2014-09-24 06:31 -0500

csiph-web