diff options
author | Tong Zeng <tong.zeng@geely.com> | 2022-11-10 02:34:03 +0000 |
---|---|---|
committer | Tong Zeng <tong.zeng@geely.com> | 2022-11-10 02:34:03 +0000 |
commit | 893191cab24cc3511135495d6d2c8d81f5ec63a3 (patch) | |
tree | dffeb8aed34cc57d6b24f257d01ff3113306ea5f /modules/scripts.py | |
parent | ac085628540d0ec6a988fad93f5b8f2154209571 (diff) | |
download | stable-diffusion-webui-gfx803-893191cab24cc3511135495d6d2c8d81f5ec63a3.tar.gz stable-diffusion-webui-gfx803-893191cab24cc3511135495d6d2c8d81f5ec63a3.tar.bz2 stable-diffusion-webui-gfx803-893191cab24cc3511135495d6d2c8d81f5ec63a3.zip |
fix a bug in list_files_with_name
Diffstat (limited to 'modules/scripts.py')
-rw-r--r-- | modules/scripts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/scripts.py b/modules/scripts.py index 637b2329..22d8908b 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -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
|