From c85cdb2732312e07ffaf5acbeeb83f1caffd1772 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 19 Jan 2022 10:11:16 -0500 Subject: [PATCH] always fall back to using the .so extension if available in the LAMMPS module folder --- python/lammps/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/lammps/core.py b/python/lammps/core.py index fcd5c76ad5..0bc8d0cb3f 100644 --- a/python/lammps/core.py +++ b/python/lammps/core.py @@ -122,6 +122,9 @@ class lammps(object): for f in os.listdir(winpath)]): lib_ext = ".dll" modpath = winpath + elif any([f.startswith('liblammps') and f.endswith('.so') + for f in os.listdir(modpath)]): + lib_ext = ".so" else: import platform if platform.system() == "Darwin":