Merge pull request #1525 from daeyun/daeyun-lib-dirs

[pyassimp] Search for libassimp.so in LD_LIBRARY_PATH if available.
pull/1524/head^2
Kim Kulling 2017-11-01 10:49:05 +01:00 committed by GitHub
commit 62e3ac9b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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()