[Pythonmac-SIG] best way to get os version?
Bob Ippolito
bob at redivi.com
Fri May 27 22:09:17 CEST 2005
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
More information about the Pythonmac-SIG
mailing list