16 lines
360 B
Diff
16 lines
360 B
Diff
--- python/olm/_base.py
|
|
+++ python/olm/_base.py
|
|
@@ -1,11 +1,10 @@
|
|
import os.path
|
|
|
|
from ctypes import *
|
|
+from ctypes import util
|
|
|
|
|
|
-lib = cdll.LoadLibrary(os.path.join(
|
|
- os.path.dirname(__file__), "..", "..", "build", "libolm.so.2")
|
|
-)
|
|
+lib = cdll.LoadLibrary(util.find_library("olm"))
|
|
|
|
lib.olm_error.argtypes = []
|
|
lib.olm_error.restypes = c_size_t
|