ok but really actually correct paths

This commit is contained in:
sneakers-the-rat 2023-09-15 00:53:07 -07:00
parent b283e8b0bf
commit 94c204e8ea

View file

@ -153,9 +153,9 @@ class Provider(ABC):
module_path = Path(importlib.util.find_spec('nwb_linkml').origin).parent module_path = Path(importlib.util.find_spec('nwb_linkml').origin).parent
if self.PROVIDES == 'linkml': if self.PROVIDES == 'linkml':
namespace_path = module_path / 'schema' namespace_path = module_path / 'schema' / 'linkml' / namespace
elif self.PROVIDES == 'pydantic': elif self.PROVIDES == 'pydantic':
namespace_path = module_path / 'models' / 'pydantic' namespace_path = module_path / 'models' / 'pydantic' / namespace
if version is not None: if version is not None:
version_path = namespace_path / version_module_case(version) version_path = namespace_path / version_module_case(version)