On May 27, 2005, at 12:26 PM, has wrote:

> Apropos to last thread, what's the best way to check Mac OS version  
> from Python at runtime?

platform.mac_ver() is probably the easiest way, but there was a bug  
in Python 2.3.0 that prevents it from working there (i.e. Apple  
Python on Mac OS X 10.3)

The other way with stock Python is to use gestalt.gestalt('sysv')  
directly, which returns the version in BCD.

See also:
<http://mail.python.org/pipermail/pythonmac-sig/2004-May/011112.html>

-bob

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to