From 12a809624ab0dfe68ae9d254a86ec07cf72e31dc Mon Sep 17 00:00:00 2001 From: starfleetcadet75 Date: Sun, 7 Aug 2016 23:49:36 -0400 Subject: [PATCH] Fix issue #603 --- bindings/python/unicorn/unicorn.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bindings/python/unicorn/unicorn.py b/bindings/python/unicorn/unicorn.py index dfca2460..a1083f70 100644 --- a/bindings/python/unicorn/unicorn.py +++ b/bindings/python/unicorn/unicorn.py @@ -76,10 +76,14 @@ if not _found: except OSError: pass -# Attempt Darwin specific load (10.11 specific), -# since LD_LIBRARY_PATH is not guaranteed to exist -if not _found and platform.system() == "Darwin": - _lib_path = "/usr/local/lib/" +if not _found: + # Attempt Darwin specific load (10.11 specific), + # since LD_LIBRARY_PATH is not guaranteed to exist + if platform.system() == "Darwin": + _lib_path = "/usr/local/lib/" + elif platform.system() == "Linux": + _lib_path = "/usr/lib64/" + for _lib in _all_libs: try: _lib_file = os.path.join(_lib_path, _lib)