python: perform the last dylib loader only if it fails before that (for El Capitan)

This commit is contained in:
Nguyen Anh Quynh 2015-10-19 20:03:45 +08:00
parent 6035734b02
commit 2b3a298609

View File

@ -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: