From a7dddf6c5f131f418d3d408c1213157bb689c584 Mon Sep 17 00:00:00 2001 From: Antoine Date: Fri, 23 Dec 2016 16:59:19 +0000 Subject: [PATCH] python bindings: restore FreeBSD support (#698) * python bindings: restore FreeBSD support * python binding: use libunicorn.so if the platform is unknown --- bindings/python/unicorn/unicorn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/unicorn/unicorn.py b/bindings/python/unicorn/unicorn.py index 549aa8ea..097bbef1 100644 --- a/bindings/python/unicorn/unicorn.py +++ b/bindings/python/unicorn/unicorn.py @@ -62,7 +62,7 @@ def _load_lib(path): if sys.platform in ('win32', 'cygwin'): _load_win_support(path) - lib_file = os.path.join(path, _lib[sys.platform]) + lib_file = os.path.join(path, _lib.get(sys.platform, 'libunicorn.so')) #print('Trying to load shared library', lib_file) dll = ctypes.cdll.LoadLibrary(lib_file) #print('SUCCESS')