fix incorrect use of glob in modelloader for #1410
This commit is contained in:
parent
820f1dc96b
commit
0114057ad6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue