python: properly load supporting DLLs in dependency order. this fixes issue #208

This commit is contained in:
Nguyen Anh Quynh 2015-10-26 15:46:10 +08:00
parent 298a942dd1
commit 359055b4ff

View file

@ -19,7 +19,7 @@ if not hasattr(sys.modules[__name__], '__file__'):
_lib_path = split(__file__)[0] _lib_path = split(__file__)[0]
_all_libs = ('unicorn.dll', 'libunicorn.so', 'libunicorn.dylib') _all_libs = ('unicorn.dll', 'libunicorn.so', 'libunicorn.dylib')
# Windows DLL in dependency order # Windows DLL in dependency order
_all_windows_dlls = ("libwinpthread-1.dll", "libgcc_s_seh-1.dll", "libgcc_s_dw2-1.dll", "libintl-8.dll", "libglib-2.0-0.dll", "libiconv-2.dll") _all_windows_dlls = ("libwinpthread-1.dll", "libgcc_s_seh-1.dll", "libgcc_s_dw2-1.dll", "libiconv-2.dll", "libintl-8.dll", "libglib-2.0-0.dll")
_found = False _found = False
for _lib in _all_libs: for _lib in _all_libs: