Skip to content

Commit f78972d

Browse files
Bugfix for Path given to get_models
1 parent 1754b78 commit f78972d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hwcomponents/find_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def get_models(
154154
):
155155
models.append(path_or_package)
156156
elif isinstance(path_or_package, (str, Path)):
157-
globbed = glob.glob(path_or_package, recursive=True)
157+
globbed = glob.glob(str(path_or_package), recursive=True)
158158
flattened.extend(globbed)
159159
else:
160160
raise ValueError(f"Invalid type: {type(path_or_package)}")

0 commit comments

Comments
 (0)