Fix cdll loading path.

This commit is contained in:
Roz K 2022-09-20 02:47:07 +02:00
parent 1855778fa7
commit 601336f1f9
Signed by: roz
GPG Key ID: 51FBF4E483E1C822

View File

@ -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