Merge pull request #604 from starfleetcadet75/master

Fix issue #603
This commit is contained in:
Nguyen Anh Quynh 2016-08-08 12:41:07 +08:00 committed by GitHub
commit 3e8b9ca2e5

View file

@ -76,10 +76,14 @@ if not _found:
except OSError: except OSError:
pass pass
# Attempt Darwin specific load (10.11 specific), if not _found:
# since LD_LIBRARY_PATH is not guaranteed to exist # Attempt Darwin specific load (10.11 specific),
if not _found and platform.system() == "Darwin": # since LD_LIBRARY_PATH is not guaranteed to exist
_lib_path = "/usr/local/lib/" if platform.system() == "Darwin":
_lib_path = "/usr/local/lib/"
elif platform.system() == "Linux":
_lib_path = "/usr/lib64/"
for _lib in _all_libs: for _lib in _all_libs:
try: try:
_lib_file = os.path.join(_lib_path, _lib) _lib_file = os.path.join(_lib_path, _lib)