diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-02 12:49:42 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-02 12:49:42 +0000 |
commit | 0114057ad672a581bd0b598870b58b674b1a3624 (patch) | |
tree | 0fd77e5b95b3bac225b2acba19cb34033d34deb6 /modules/modelloader.py | |
parent | 820f1dc96b1979d7e92170c161db281ee8bd988b (diff) | |
download | stable-diffusion-webui-gfx803-0114057ad672a581bd0b598870b58b674b1a3624.tar.gz stable-diffusion-webui-gfx803-0114057ad672a581bd0b598870b58b674b1a3624.tar.bz2 stable-diffusion-webui-gfx803-0114057ad672a581bd0b598870b58b674b1a3624.zip |
fix incorrect use of glob in modelloader for #1410
Diffstat (limited to 'modules/modelloader.py')
-rw-r--r-- | modules/modelloader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/modelloader.py b/modules/modelloader.py index 8c862b42..015aeafa 100644 --- a/modules/modelloader.py +++ b/modules/modelloader.py @@ -43,7 +43,7 @@ def load_models(model_path: str, model_url: str = None, command_path: str = None for place in places: if os.path.exists(place): for file in glob.iglob(place + '**/**', recursive=True): - full_path = os.path.join(place, file) + full_path = file if os.path.isdir(full_path): continue if len(ext_filter) != 0: |