void-packages/srcpkgs/olm/patches/python-find-olm.patch

17 lines
360 B
Diff
Raw Normal View History

2018-06-14 03:23:22 +02:00
--- python/olm/_base.py
+++ python/olm/_base.py
2018-10-05 16:28:31 +02:00
@@ -1,11 +1,10 @@
2018-06-14 03:23:22 +02:00
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