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,8 +199,8 @@ class lammps(object):
elif any([f.startswith('liblammps') and f.endswith('.dll')
for f in os.listdir(modpath)]):
lib_ext = ".dll"
elif any([f.startswith('liblammps') and f.endswith('.dll')
for f in os.listdir(winpath)]):
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: