Skip to content

Commit

Permalink
Merge pull request #109 from linkml/add-paths-to-init
Browse files Browse the repository at this point in the history
Add metadata to __init__.py to facilitate schema location.
  • Loading branch information
cmungall authored Jun 5, 2024
2 parents d94a158 + 9dca039 commit 4ee2b14
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 4ee2b14

Please sign in to comment.