diff --git a/nwb_linkml/src/nwb_linkml/providers/schema.py b/nwb_linkml/src/nwb_linkml/providers/schema.py index b5a4b06..dd65745 100644 --- a/nwb_linkml/src/nwb_linkml/providers/schema.py +++ b/nwb_linkml/src/nwb_linkml/providers/schema.py @@ -153,9 +153,9 @@ class Provider(ABC): module_path = Path(importlib.util.find_spec('nwb_linkml').origin).parent if self.PROVIDES == 'linkml': - namespace_path = module_path / 'schema' + namespace_path = module_path / 'schema' / 'linkml' / namespace elif self.PROVIDES == 'pydantic': - namespace_path = module_path / 'models' / 'pydantic' + namespace_path = module_path / 'models' / 'pydantic' / namespace if version is not None: version_path = namespace_path / version_module_case(version)