diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-11-11 15:00:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 15:00:13 +0000 |
commit | b8a2e387588394e7f089f05279e7e2d0e5a3eb9c (patch) | |
tree | 3e780a32b550df790e0f5d4c37ffa5428c49bd1c | |
parent | e666220ee458ae1e80a2ba12c64a0da9d68f20a2 (diff) | |
parent | 893191cab24cc3511135495d6d2c8d81f5ec63a3 (diff) | |
download | stable-diffusion-webui-gfx803-b8a2e387588394e7f089f05279e7e2d0e5a3eb9c.tar.gz stable-diffusion-webui-gfx803-b8a2e387588394e7f089f05279e7e2d0e5a3eb9c.tar.bz2 stable-diffusion-webui-gfx803-b8a2e387588394e7f089f05279e7e2d0e5a3eb9c.zip |
Merge pull request #4543 from tong-zeng/master
Fix a bug in list_files_with_name
-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
|