Skip to content

Commit

Permalink
Use correct lib path
Browse files Browse the repository at this point in the history
  • Loading branch information
wtdcode committed Apr 30, 2024
1 parent da84208 commit 85b289d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/unicorn/unicorn_py3/unicorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def _load_lib(path: Path, lib_name: str):
lib_locations = [
os.getenv('LIBUNICORN_PATH'),
pkg_resources.resource_filename(__name__, 'lib'),
PurePath(inspect.getfile(__load_uc_lib)).parent / 'lib',
PurePath(inspect.getfile(__load_uc_lib)).parent.parent / 'lib',
'',
"/usr/local/lib/" if sys.platform == 'darwin' else '/usr/lib64',
] + [PurePath(p) / 'unicorn' / 'lib' for p in sys.path] # lazymio: ??? why PATH ??
Expand Down

0 comments on commit 85b289d

Please sign in to comment.