From bf9d3194898d58c89e95799087ae65038f5b35b1 Mon Sep 17 00:00:00 2001 From: Daeyun Shin Date: Tue, 31 Oct 2017 15:43:39 -0700 Subject: [PATCH] Update helper.py Search for libassimp.so in LD_LIBRARY_PATH if available. --- port/PyAssimp/pyassimp/helper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/port/PyAssimp/pyassimp/helper.py b/port/PyAssimp/pyassimp/helper.py index 4fa01d51d..85bb53add 100644 --- a/port/PyAssimp/pyassimp/helper.py +++ b/port/PyAssimp/pyassimp/helper.py @@ -30,6 +30,9 @@ if os.name=='posix': additional_dirs.append('/usr/lib/x86_64-linux-gnu') additional_dirs.append('/usr/local/lib/') + if 'LD_LIBRARY_PATH' in os.environ: + additional_dirs.extend([item for item in os.environ['LD_LIBRARY_PATH'].split(':') if item]) + # check if running from anaconda. if "conda" or "continuum" in sys.version.lower(): cur_path = get_python_lib()