albertosottile / darkdetect

Detect OS Dark Mode from Python
Other
171 stars 18 forks source link

WARNING message from PyInstaller about ignoring AppKit.framework/AppKit imported from _mac_detect.py #40

Open Gdalik opened 3 months ago

Gdalik commented 3 months ago

Hi!

I'm working on the Dark Mode support for my OSS app. When building with PyInstaller, the following WARNING message appears:

WARNING: Ignoring AppKit.framework/AppKit imported from [project folder]/venv/lib/python3.10/site-packages/darkdetect/_mac_detect.py - only basenames are supported with ctypes imports!

Everything seems to work fine though...

Thanks!

Gdalik commented 3 months ago

UPD: when I change appkit = ctypes.cdll.LoadLibrary('AppKit.framework/AppKit') to appkit = ctypes.cdll.LoadLibrary('AppKit.framework'), this WARNING message disappears...

I have created a pull request