From 745ff9338d993609c668e5c7b084d2e3698a582f Mon Sep 17 00:00:00 2001 From: Gdaliy Garmiza <60599715+Gdalik@users.noreply.github.com> Date: Mon, 11 Mar 2024 09:46:31 +0300 Subject: [PATCH] Update _mac_detect.py Eliminates the WARNING message from PyInstaller: WARNING: Ignoring AppKit.framework/AppKit imported from [..]/darkdetect/_mac_detect.py - only basenames are supported with ctypes imports! --- darkdetect/_mac_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darkdetect/_mac_detect.py b/darkdetect/_mac_detect.py index 8d44bc7..707e5e6 100644 --- a/darkdetect/_mac_detect.py +++ b/darkdetect/_mac_detect.py @@ -22,7 +22,7 @@ try: # macOS Big Sur+ use "a built-in dynamic linker cache of all system-provided libraries" - appkit = ctypes.cdll.LoadLibrary('AppKit.framework/AppKit') + appkit = ctypes.cdll.LoadLibrary('AppKit.framework') objc = ctypes.cdll.LoadLibrary('libobjc.dylib') except OSError: # revert to full path for older OS versions and hardened programs