From ad4331a4bd8b29fe1f91b048c6d606e515659cf4 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 7 Feb 2022 18:55:16 +0100 Subject: facilitate for including other schemas in submodule and expose them to other packages --- src/hydrilla/builder/build.py | 4 +--- src/hydrilla/builder/schemas | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 160000 src/hydrilla/builder/schemas (limited to 'src/hydrilla/builder') diff --git a/src/hydrilla/builder/build.py b/src/hydrilla/builder/build.py index d89ead3..dae5579 100644 --- a/src/hydrilla/builder/build.py +++ b/src/hydrilla/builder/build.py @@ -35,9 +35,7 @@ import jsonschema from .. import util -here = Path(__file__).resolve().parent -with open(here / 'schemas' / 'package_source-1.schema.json') as schema_file: - index_json_schema = json.load(schema_file) +index_json_schema = util.load_schema('package_source-1.schema.json') class FileReferenceError(Exception): """ diff --git a/src/hydrilla/builder/schemas b/src/hydrilla/builder/schemas deleted file mode 160000 index ca1de2e..0000000 --- a/src/hydrilla/builder/schemas +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ca1de2ed4a69a71f2f75552ade693d04ea1baa85 -- cgit v1.2.3