always fall back to using the .so extension if available in the LAMMPS module folder

This commit is contained in:
Axel Kohlmeyer
2022-01-19 10:11:16 -05:00
parent 389c35a2d3
commit c85cdb2732

View File

@ -122,6 +122,9 @@ class lammps(object):
for f in os.listdir(winpath)]): for f in os.listdir(winpath)]):
lib_ext = ".dll" lib_ext = ".dll"
modpath = winpath modpath = winpath
elif any([f.startswith('liblammps') and f.endswith('.so')
for f in os.listdir(modpath)]):
lib_ext = ".so"
else: else:
import platform import platform
if platform.system() == "Darwin": if platform.system() == "Darwin":