[Tutor] Why is startfile unavailable on my mac?

Mike Hansen Mike.Hansen at atmel.com
Mon Dec 4 18:01:13 CET 2006


 

> -----Original Message-----
> From: tutor-bounces at python.org 
> [mailto:tutor-bounces at python.org] On Behalf Of Nathan Cain
> Sent: Monday, December 04, 2006 9:52 AM
> To: tutor at python.org
> Subject: [Tutor] Why is startfile unavailable on my mac?
> 
> When I type the following in macpython IDLE,:
> 
> >>> import os
> >>> os.startfile()
> 
> I get the following error:
> 
> Traceback (most recent call last):
>   File "<pyshell#10>", line 1, in <module>
>     os.startfile()
> AttributeError: 'module' object has no attribute 'startfile'
> 
> 
> Why is this unavailable to me?
> 
> 
> I am trying to open a url in a browser window.
> 
> 
> If startfile is just not available on the mac, can someone 
> please give me some simple example code that will open 
> http://www.python.org in a safari window?
> 
> 
> Thank you.
> 
> *******************************************
> Nathan Cain

I just read the docs. I'm assuming that "Availability: Windows" means
that it's Windows only.

Mike 
-------------- next part --------------
-------------

  NOTICE:  This e-mail transmission and any documents or files attached to
  it contain information for the sole use of the above-identified individual or entity.

  Its contents may be privileged, confidential, and exempt from disclosure under the law.
  Any dissemination, distribution, or copying of this communication is strictly prohibited.

  Please notify the sender immediately if you are not the intended recipient.

FGNS


More information about the Tutor mailing list