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

2014-09-24 Thread DaveA
> import webbrowser
> webbrowser.open('f:\\test.html')
 
> 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


file:///f:/test.html

I also don't run Windows any more so I might have the drive letter part wrong.

--
DaveA

 Original message 
From: luofeiyu  
Date:09/24/2014  5:32 AM  (GMT-05:00) 
To: python-list@python.org 
Subject: why can't open the file with browser? 


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


Vista Compatibility

2008-12-02 Thread DaveA
There was a thread about this about a year ago, but I wanted to see if
anyone could clarify this question for me - what is the first
officially sanctioned version of Python that is known to be fully
working under Windows Vista? The best I could find is some indications
that point to 2.5 being the first.

I'm asking because we have a Python 2.3.4 runtime for an application
that we're now looking into running on Vista.

Thanks!
--
http://mail.python.org/mailman/listinfo/python-list