mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix OS X version parsing/error related to OS X 10.10 update.
This commit is contained in:
committed by
Vinnie Falco
parent
4a8555b3bf
commit
f0f082d3e3
@@ -59,9 +59,10 @@ class __System(object):
|
||||
self.__display = '%s %s (%s)' % (self.distro, self.version, self.name)
|
||||
|
||||
elif self.osx:
|
||||
ten, major, minor = platform.mac_ver()[0].split('.')
|
||||
self.__display = '%s %s.%s.%s' % (self.name, ten, major, minor)
|
||||
|
||||
parts = platform.mac_ver()[0].split('.')
|
||||
while len(parts) < 3:
|
||||
parts.append('0')
|
||||
self.__display = '%s %s' % (self.name, '.'.join(parts))
|
||||
elif self.windows:
|
||||
release, version, csd, ptype = platform.win32_ver()
|
||||
self.__display = '%s %s %s (%s)' % (self.name, release, version, ptype)
|
||||
|
||||
Reference in New Issue
Block a user