[Pythonmac-SIG] how to determine Mac OS X version
brad.allen at omsdal.com
brad.allen at omsdal.com
Fri May 28 11:46:16 EDT 2004
/usr/bin/sw_vers does indeed work on both Jaguar and Panther. This is very
helpful. Thanks again!
pythonmac-sig-bounces at python.org wrote on 05/28/2004 09:21:19 AM:
>
> I didn't know about that command. Thanks very much! It works great
> under Panther. When I get to work, I'll test on a Jaguar system.
>
> Dan Wolfe <dkwolfe at pacbell.net> wrote on 05/28/2004 01:48:34 AM:
>
> > try the /usr/bin/sw_vers tool
> >
> > lobo% sw_vers
> > ProductName: Mac OS X
> > ProductVersion: 10.3.4
> > BuildVersion: 7H63
> >
> > - Dan
> >
> > On May 27, 2004, at 11:32 PM, brad.allen at omsdal.com wrote:
> >
> > >
> > > I tried platform.mac_ver(), but this seems to be broken. Google
turns
> > > up various bug reports on this function.
> > >
> > > I can use the shell command system_profiler on 10.3 but it's too
slow
> > > on 10.2. We still have lots of machines running 10.2, and it will be
> > > several months before they can all be upgraded.
> > >
> > > sysctl doesn't have a variable for this, only for the Darwin
version.
> > >
> > > Does anybody know a way to do this using Python or calling an
outside
> > > shell command? I'd like something that will work for both 10.2 and
> > > 10.3 without having to install additional Python modules.
> > >
> > > Thanks!_______________________________________________
> > > Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> > > http://mail.python.org/mailman/listinfo/pythonmac-sig
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20040528/bf5e625e/attachment.html
More information about the Pythonmac-SIG
mailing list