Fix cdll loading path.
This commit is contained in:
parent
1855778fa7
commit
601336f1f9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user