fix incorrect use of glob in modelloader for #1410

This commit is contained in:
AUTOMATIC 2022-10-02 15:49:42 +03:00
parent 820f1dc96b
commit 0114057ad6

View File

@ -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: