mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
fix ctypes AttributeError in pre_activated.py
This commit is contained in:
parent
22ce34442c
commit
7225671fc9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user