From 2b3a298609577b7981fc913759fe9bb9134dc2a4 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Mon, 19 Oct 2015 20:03:45 +0800 Subject: [PATCH] python: perform the last dylib loader only if it fails before that (for El Capitan) --- bindings/python/capstone/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/capstone/__init__.py b/bindings/python/capstone/__init__.py index 1acf37c83..f80c91d9b 100644 --- a/bindings/python/capstone/__init__.py +++ b/bindings/python/capstone/__init__.py @@ -230,7 +230,7 @@ if _found == False: # Attempt Darwin specific load (10.11 specific), # since LD_LIBRARY_PATH is not guaranteed to exist -if system() == 'Darwin': +if (_found == False) and (system() == 'Darwin'): _lib_path = '/usr/local/lib/' for _lib in _all_libs: try: