Skip to content

Commit

Permalink
Add metadata to __init__.py to facilitate schema location.
Browse files Browse the repository at this point in the history
This makes it explicit how to locate the schema files.

linkml/linkml#1131
  • Loading branch information
cmungall committed May 31, 2024
1 parent d9b85bb commit 9dca039
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
from pathlib import Path
from .{{cookiecutter.__project_slug}} import *

THIS_PATH = Path(__file__).parent

SCHEMA_DIRECTORY = THIS_PATH.parent / "schema"
MAIN_SCHEMA_PATH = SCHEMA_DIRECTORY / "{{cookiecutter.__project_slug}}.yaml"

0 comments on commit 9dca039

Please sign in to comment.