always fall back to using the .so extension if available in the LAMMPS module folder
This commit is contained in:
@ -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":
|
||||||
|
|||||||
Reference in New Issue
Block a user