diff --git a/src/bo4e_generator/parser.py b/src/bo4e_generator/parser.py index 7ee3c9d..59ba2cd 100644 --- a/src/bo4e_generator/parser.py +++ b/src/bo4e_generator/parser.py @@ -249,7 +249,7 @@ def adapt_parse_for_sql( additional_arguments["extra_template_data"] = additional_sql_data additional_arguments["additional_imports"] = ["sqlmodel.Field", "uuid as uuid_pkg", "sqlmodel.Relationship"] additional_arguments["base_class"] = "sqlmodel.SQLModel" - additional_arguments["custom_template_dir"] = Path("custom_templates") + additional_arguments["custom_template_dir"] = Path(__file__).resolve().parent / Path("custom_templates") # save intermediate jsons for schema in namespace.values():