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
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 2 deletions

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: