How to fire off a web browser process from Python in Win?

Michal Wallace (sabren) sabren at manifestation.com
Mon Apr 17 08:54:21 EDT 2000


On Sun, 16 Apr 2000, Grant Munsey wrote:

> Is there a call somewhere in the std library for staring up the default
> ( the one that the user has set for opening .htm and .html files)
> web browser on Win 95/8/NT/2K?

import os
os.popen("start http://www.python.org/")



.. seems to work for me, anyway..

Cheers,

- Michal
-------------------------------------------------------------------------
http://www.manifestation.com/         http://www.linkwatcher.com/metalog/
-------------------------------------------------------------------------





More information about the Python-list mailing list