forked from lijiext/lammps
look for liblammps.dll in windows binary dir only if that directory exists
This commit is contained in:
parent
a79a7b2704
commit
fb33a71720
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue