Tahoe, macOS not MacOS

This commit is contained in:
Jay Lee
2025-09-16 12:46:14 +00:00
parent 986672370a
commit 5efde2a967

View File

@@ -9361,6 +9361,7 @@ MACOS_CODENAMES = {
13: 'Ventura',
14: 'Sonoma',
15: 'Sequoia',
26: 'Tahoe',
}
def getOSPlatform():
@@ -9370,7 +9371,7 @@ def getOSPlatform():
elif myos == 'Windows':
pltfrm = ' '.join(platform.win32_ver())
elif myos == 'Darwin':
myos = 'MacOS'
myos = 'macOS'
mac_ver = platform.mac_ver()[0]
major_ver = int(mac_ver.split('.')[0]) # macver 10.14.6 == major_ver 10
minor_ver = int(mac_ver.split('.')[1]) # macver 10.14.6 == minor_ver 14