Or this can open most things:

import webbrowser
webbrowser.open_new('file///' + filename)

On 11/06/2008, Alan Gauld <[EMAIL PROTECTED]> wrote:
>
>  "Terry Carroll" <[EMAIL PROTECTED]> wrote
>
>
> >
> > > If TextPad is your default txt editor just use
> > > os.system("foo.txt")
> > >
> >
> > or os.startfile("foo.txt"); sounds like the equivalent, but for some
> > reason, I prefer it.
> >
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to