get correct path for provider

This commit is contained in:
sneakers-the-rat 2023-09-15 00:50:16 -07:00
parent ccf267babd
commit b283e8b0bf
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,4 @@
# Types
Special types for nwb_linkml :)

View file

@ -155,7 +155,7 @@ class Provider(ABC):
if self.PROVIDES == 'linkml':
namespace_path = module_path / 'schema'
elif self.PROVIDES == 'pydantic':
namespace_path = module_path / 'models'
namespace_path = module_path / 'models' / 'pydantic'
if version is not None:
version_path = namespace_path / version_module_case(version)