diff --git a/__init__.py b/__init__.py index a52f73b..8b64bf4 100644 --- a/__init__.py +++ b/__init__.py @@ -16,8 +16,9 @@ import ctypes import struct from array import array +from pathlib import Path -_lib = ctypes.cdll.LoadLibrary("./engine/engine.so") +_lib = ctypes.cdll.LoadLibrary(Path(__file__).parent / "engine.so") def _flag(x): return 1 << x