Update lammps.py

This commit is contained in:
Jan Janßen
2019-02-09 08:46:22 +01:00
committed by GitHub
parent 0fade44b43
commit 277f8356b1

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 sys.platform == 'darwin':
if 'liblammps.dylib' in os.listdir(modpath):
lib_ext = ".dylib"
else:
lib_ext = ".so"