python bindings: restore FreeBSD support (#698)

* python bindings: restore FreeBSD support

* python binding: use libunicorn.so if the platform is unknown
This commit is contained in:
Antoine 2016-12-23 16:59:19 +00:00 committed by Nguyen Anh Quynh
parent 2386293020
commit a7dddf6c5f

View file

@ -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')