From 6083dfe25571c31889fed265075decc205bacadf Mon Sep 17 00:00:00 2001 From: turegano-equinix <98024527+turegano-equinix@users.noreply.github.com> Date: Fri, 17 Feb 2023 14:05:48 +0100 Subject: [PATCH] macOS version rather than the darwin version #Changed in version 3.8: On macOS, the function now uses mac_ver(), if it returns a non-empty release string, to get the macOS version rather than the darwin version. >>> import platform >>> platform.platform() 'macOS-13.2.1-x86_64-i386-64bit' --- openAutomation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openAutomation.py b/openAutomation.py index c20a2a9..7765bc3 100644 --- a/openAutomation.py +++ b/openAutomation.py @@ -47,7 +47,7 @@ def openFile(directory, filename) : # verifies system is on mac os def validateSystem() : system = platform.platform() - if 'darwin' not in system.lower() : + if 'macos' not in system.lower() : print('system: {}'.format(system)) print("Sorry, this script is only supported on mac!") exit(1)