[Tutor] Why is startfile unavailable on my mac?

John Fouhy john at fouhy.net
Mon Dec 4 22:53:30 CET 2006


On 05/12/06, Kent Johnson <kent37 at tds.net> wrote:
> The docs for os.startfile() say it is available on Windows only.

Hmm, well you could do a basic Mac version of startfile like this:

def startfile(fn):
    os.system('open %s' % fn)

-- 
John.


More information about the Tutor mailing list