why can't open the file with browser?
davea at davea.name
Wed Sep 24 14:12:15 CEST 2014
> import webbrowser
> why the file f:\\test.html is opened by notepad
> ,not by my firefox or chrome?
The default protocol in a browser is http. If you're not running a server on your local machine, you need to specify a different protocol. Try
I also don't run Windows any more so I might have the drive letter part wrong.
-------- Original message --------
From: luofeiyu <elearn2014 at gmail.com>
Date:09/24/2014 5:32 AM (GMT-05:00)
To: python-list at python.org
Subject: why can't open the file with browser?
why the file f:\\test.html is opened by notepad ,not by my firefox or chrome?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list