Dispatching default application for file, cross platform.

Hendrik van Rooyen mail at microcorp.co.za
Wed Aug 22 17:02:23 CEST 2007


"Tim Golden" <ma....me.uk>

> Peter Otten wrote:
> > Tim Golden wrote:
> > 
> >> Hendrik van Rooyen wrote:
> >>> How do I do the equivalent of clicking (in SuSe) or double clicking (in
> >>> Windows) on a file?
> >>>
> >>> In effect I want to tell the OS - take this file and feed it to the
> >>> application that is registered for it.
> > 
> >> os.startfile
> > 
> > Unfortunately this is Windows-only. 
> 
> Good point. I think that Paul Boddie's desktop
> module is designed to handle cross-platform issues
> for this kind of thing: (Never used it myself)
> 
> http://pypi.python.org/pypi/desktop/0.2.3
> 
> TJG

It gets better and better - Thanks Peter and Tim.

- Hendrik





More information about the Python-list mailing list