Commit b8a2e387 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #4543 from tong-zeng/master

Fix a bug in list_files_with_name
parents e666220e 893191ca
...@@ -140,7 +140,7 @@ def list_files_with_name(filename): ...@@ -140,7 +140,7 @@ def list_files_with_name(filename):
continue continue
path = os.path.join(dirpath, filename) path = os.path.join(dirpath, filename)
if os.path.isfile(filename): if os.path.isfile(path):
res.append(path) res.append(path)
return res return res
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment