gattlib-py/gattlib: Fix loading native library

pull/185/merge 0.4.1
Olivier Martin 2024-02-22 22:26:43 +01:00
parent ebd163f1dc
commit f0426ae3e3
1 changed files with 2 additions and 1 deletions

View File

@ -6,10 +6,11 @@
from ctypes import *
import logging
import pathlib
logger = logging.getLogger(__name__)
gattlib = CDLL("libgattlib.so")
gattlib = cdll.LoadLibrary(str(pathlib.Path(__file__).with_name('libgattlib.so')))
def native_logging(level: int, string: str):
if level == 3: