Merge branch 'progguide-updates' into progguide-richard

This commit is contained in:
Axel Kohlmeyer
2020-10-05 19:31:03 -04:00
53 changed files with 646 additions and 748 deletions

View File

@ -203,6 +203,8 @@ class lammps(object):
# determine module file location
modpath = dirname(abspath(getsourcefile(lambda:0)))
# for windows installers the shared library is in a different folder
winpath = abspath(os.path.join(modpath,'..','bin'))
self.lib = None
self.lmp = None
@ -231,6 +233,10 @@ class lammps(object):
elif any([f.startswith('liblammps') and f.endswith('.dll')
for f in os.listdir(modpath)]):
lib_ext = ".dll"
elif os.path.exists(winpath) and any([f.startswith('liblammps') and f.endswith('.dll')
for f in os.listdir(winpath)]):
lib_ext = ".dll"
modpath = winpath
else:
lib_ext = ".so"