look for liblammps.dll in windows binary dir only if that directory exists

This commit is contained in:
Axel Kohlmeyer
2020-10-01 00:34:03 -04:00
parent a79a7b2704
commit fb33a71720

View File

@ -199,7 +199,7 @@ class lammps(object):
elif any([f.startswith('liblammps') and f.endswith('.dll') elif any([f.startswith('liblammps') and f.endswith('.dll')
for f in os.listdir(modpath)]): for f in os.listdir(modpath)]):
lib_ext = ".dll" lib_ext = ".dll"
elif any([f.startswith('liblammps') and f.endswith('.dll') elif os.path.exists(winpath) and any([f.startswith('liblammps') and f.endswith('.dll')
for f in os.listdir(winpath)]): for f in os.listdir(winpath)]):
lib_ext = ".dll" lib_ext = ".dll"
modpath = winpath modpath = winpath