fix MacOS vars

This commit is contained in:
Jay Lee
2019-09-06 11:21:39 -04:00
parent 209fdfd5b9
commit 3aa6869a4b

View File

@@ -808,7 +808,7 @@ def getOSPlatform():
elif myos == 'Darwin':
myos = 'MacOS'
mac_ver = platform.mac_ver()[0]
minor_ver = int(pltfrm.split('.')[1]) # pltfrm 10.14.6 == mac_ver 14
minor_ver = int(mac_ver.split('.')[1]) # macver 10.14.6 == minor_ver 14
codename = MACOS_CODENAMES.get(minor_ver, '')
pltfrm = ' '.join([codename, mac_ver])
else: