Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/schematic/schematic_json_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

import copy
import logging

from os.path import dirname
PROJECT_ROOT = dirname(dirname(dirname(__file__)))


from .schematic_utils import make_object, \
Expand Down Expand Up @@ -143,7 +144,7 @@ def write_output(self):
json.dump(include_graph, isljd, sort_keys=True, indent=4)


st = SchematicJSONTransformer(f"{project_root}/src/linkml/include_schema.yaml", f"{project_root}/src/data/schematic")
st = SchematicJSONTransformer(f"{PROJECT_ROOT}/src/linkml/include_schema.yaml", f"{PROJECT_ROOT}/src/data/schematic")
st.class_generator()
st.property_generator()
st.write_output()
Expand Down