Merge pull request #4543 from tong-zeng/master

Fix a bug in list_files_with_name
This commit is contained in:
AUTOMATIC1111 2022-11-11 18:00:13 +03:00 committed by GitHub
commit b8a2e38758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ def list_files_with_name(filename):
continue
path = os.path.join(dirpath, filename)
if os.path.isfile(filename):
if os.path.isfile(path):
res.append(path)
return res