Merge branch 'fix/pre_activated-ctypes' of https://github.com/bikesheddev/calibre

This commit is contained in:
Kovid Goyal 2024-06-08 06:34:45 +05:30
commit a8c874b398
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -35,7 +35,8 @@ if islinux:
return addr.nl_family
try:
systemd = ctypes.CDLL(ctypes.util.find_library('systemd'))
from ctypes.util import find_library
systemd = ctypes.CDLL(find_library('systemd'))
systemd.sd_listen_fds
except Exception:
pass