Fix version info on OS X

This commit is contained in:
Florian Bruhin 2014-09-25 21:33:03 +02:00
parent 771acf384d
commit 66d36442d7

View File

@ -174,7 +174,9 @@ def _os_info():
elif sys.platform == 'win32':
osver = ', '.join(platform.win32_ver())
elif sys.platform == 'darwin':
osver = ', '.join(platform.mac_ver())
mac_ver = platform.mac_ver()
versioninfo = '.'.join(mac_ver.versioninfo)
osver = ', '.join(mac_ver.release, versioninfo, mac_ver.machine)
else:
osver = '?'
lines.append('OS Version: {}'.format(osver))