We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3289a9d commit af8a442Copy full SHA for af8a442
scc/lib/eudevmonitor.py
@@ -32,11 +32,12 @@ class Eudev:
32
def __init__(self) -> None:
33
self._ctx = None
34
try:
35
- self._lib = ctypes.cdll.LoadLibrary("libudev.so")
+ self._lib = ctypes.cdll.LoadLibrary("libudev.so.1")
36
except OSError:
37
- self._lib = ctypes.CDLL(find_library(self.LIB_NAME))
38
- if self._lib is None:
+ lib_name = find_library(self.LIB_NAME)
+ if lib_name is None:
39
raise ImportError("No library named udev")
40
+ self._lib = ctypes.CDLL(lib_name)
41
Eudev._setup_lib(self._lib)
42
self._ctx = self._lib.udev_new()
43
if self._ctx is None:
0 commit comments