execute a file

Dale Strickland-Clark dale at riverhall.NOTHANKS.co.uk
Wed Apr 23 12:45:20 EDT 2003


Giacomo <kylnas at tiscalinet.it> wrote:

>Hi everybody, i would like to know how can i execute a generic file.
>I mean execute a file like *.txt, *.jpg launching the application to
>see that file (an editor for txt file, for example paint shop pro for
>jpg file, and so on).
>bye and thanks

For Windows, you probably want:

 os.startfile(path)

I don't know about other platforms.
-- 
Dale Strickland-Clark
Riverhall Systems Ltd




More information about the Python-list mailing list