aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-02 15:49:42 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-10-02 15:49:42 +0300
commit0114057ad672a581bd0b598870b58b674b1a3624 (patch)
tree0fd77e5b95b3bac225b2acba19cb34033d34deb6 /modules
parent820f1dc96b1979d7e92170c161db281ee8bd988b (diff)
fix incorrect use of glob in modelloader for #1410
Diffstat (limited to 'modules')
-rw-r--r--modules/modelloader.py2
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: