From 5cc2d80916e25e962ba939a3fb918c8ea34aa8f4 Mon Sep 17 00:00:00 2001 From: elicn Date: Thu, 19 Sep 2024 17:16:21 +0300 Subject: [PATCH] Adjust import path to new path --- bindings/python/unicorn/unicorn_py3/unicorn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/unicorn/unicorn_py3/unicorn.py b/bindings/python/unicorn/unicorn_py3/unicorn.py index 5c4a4a34..3dba5d1e 100644 --- a/bindings/python/unicorn/unicorn_py3/unicorn.py +++ b/bindings/python/unicorn/unicorn_py3/unicorn.py @@ -95,7 +95,7 @@ def __load_uc_lib() -> ctypes.CDLL: lib_locations = [ os.getenv('LIBUNICORN_PATH'), pkg_resources.resource_filename(__name__, 'lib'), - PurePath(inspect.getfile(__load_uc_lib)).parent.parent / 'lib', + PurePath(inspect.getfile(__load_uc_lib)).parent / 'lib', '', r'/usr/local/lib' if sys.platform == 'darwin' else r'/usr/lib64', ] + [PurePath(p) / 'unicorn' / 'lib' for p in sys.path]