run-mailcap in python?

Thomas Guettler zopestoller at thomas-guettler.de
Tue Sep 10 05:04:17 EDT 2002


Hi!

On Unix there is a script called run-mailcap, which
opens the corresponding programm with the given file:

run-mailcap foo.html
--> Default browser starts

On windows you can use a double-click with the
explorer or use cygstart from cygwin.

Is there a portable function in python which does this?

E.g.

run("foo.html")
  --> Browser starts

run("foo.doc")
  --> Word starts

thomas




More information about the Python-list mailing list