Update lammps.py

This commit is contained in:
Jan Janßen 2019-02-12 08:20:54 +01:00 committed by GitHub
parent f5e3c53880
commit e582c0d4e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class lammps(object):
# fall back to loading with a relative path,
# typically requires LD_LIBRARY_PATH to be set appropriately
if 'liblammps.dylib' in os.listdir(modpath):
if any([f.startswith('liblammps') and f.endswith('.dylib') for f in os.listdir(modpath)]):
lib_ext = ".dylib"
else:
lib_ext = ".so"