default webbrowser

Martin von Loewis loewis at informatik.hu-berlin.de
Sun Dec 16 07:55:25 EST 2001


Robin Becker <robin at jessikat.fsnet.co.uk> writes:

> I'm trying to use the webbrowser module, but don't seem to have a
> 'default' webbrowser set up somehow. Any win32 experts know what I have
> to do to get win2k to use netscape as a default browser?

netscape *is* the default on Windows, but it tries to find it in your
PATH.

If that fails, it tries to do os.startfile to open a browser; if you
manage to associate anything with the extension of the file you are
trying to open, it should work with webbrowser as well.

Regards,
Martin



More information about the Python-list mailing list