Yi Qiang wrote:
> Hi,
> I am trying to get some basic information about the computer's
> hardware specs in OSX in python.  In linux I can get most of what I
> need from the /proc filesystem.  Is there an equivalent in OSX?  If
> not, where else can I get information about the system from?  I need
> CPU model, # of cpus, cpu speed, physical memory, etc.
> 
> Thanks,
> Yi

Somewhat unsurprisingly, a quick google for "python system information
osx" turned up this recipe in the ActiveState cookbook:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303063
which should help.
Looking into the sysctl command might also be useful.

HTH, keep in mind that I'm *NOT* a Mac guy, at all.
Jordan
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to