File tree 1 file changed +4
-2
lines changed
bindings/python/unicorn/unicorn_py3
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,9 @@ def _load_lib(path: Path, lib_name: str):
92
92
os .getenv ('LIBUNICORN_PATH' ),
93
93
pkg_resources .resource_filename (__name__ , 'lib' ),
94
94
PurePath (inspect .getfile (__load_uc_lib )).parent / 'lib' ,
95
- ''
96
- ] + [PurePath (p ) / 'unicorn' / 'lib' for p in sys .path ]
95
+ '' ,
96
+ "/usr/local/lib/" if sys .platform == 'darwin' else '/usr/lib64' ,
97
+ ] + [PurePath (p ) / 'unicorn' / 'lib' for p in sys .path ] # lazymio: ??? why PATH ??
97
98
98
99
# filter out None elements
99
100
lib_locations = tuple (Path (loc ) for loc in lib_locations if loc is not None )
@@ -102,6 +103,7 @@ def _load_lib(path: Path, lib_name: str):
102
103
'cygwin' : 'cygunicorn.dll' ,
103
104
'darwin' : 'libunicorn.2.dylib' ,
104
105
'linux' : 'libunicorn.so.2' ,
106
+ 'linux2' : 'libunicorn.so.2' ,
105
107
'win32' : 'unicorn.dll'
106
108
}.get (platform , "libunicorn.so" )
107
109
You can’t perform that action at this time.
0 commit comments