run-mailcap in python?

Peter Hansen peter at engcorp.com
Tue Sep 10 10:27:57 EDT 2002


Thomas Guettler wrote:
> 
> Peter Hansen schrieb:
> > import  os
> > if os.name == 'posix':
> >     def startfile(name):
> >         os.system('run-mailcap "%s"' % name)
> >     os.startfile = startfile
> 
> Yes, ugly but it works. Thank you!

In Pythonia, "ugly" is sometimes spelled "pragmatic".  <grin>

-Peter



More information about the Python-list mailing list