We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03a0c2a commit 6b25a3bCopy full SHA for 6b25a3b
bioimageio/core/resource_io/utils.py
@@ -211,8 +211,10 @@ def resolve_local_source(
211
if not is_path_cwd and is_path_rp:
212
source = path_from_root
213
214
- if is_path_cwd or is_path_rp or isinstance(source, os.PathLike):
+ if is_path_cwd or is_path_rp:
215
return pathlib.Path(source)
216
+ elif isinstance(source, os.PathLike):
217
+ raise FileNotFoundError(f"Could neither find {source} nor {pathlib.Path(root_path) / source}")
218
219
if isinstance(source, str):
220
uri = fields.URI().deserialize(source)
0 commit comments