diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-07 18:55:16 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-07 19:04:40 +0100 |
commit | ad4331a4bd8b29fe1f91b048c6d606e515659cf4 (patch) | |
tree | b365a76c1857d13ed6c620bb78b3840055e3ae30 /src/hydrilla/builder | |
parent | 8cdc62359db644cc30d24afbd4464453da95b192 (diff) | |
download | hydrilla-builder-ad4331a4bd8b29fe1f91b048c6d606e515659cf4.tar.gz hydrilla-builder-ad4331a4bd8b29fe1f91b048c6d606e515659cf4.zip |
facilitate for including other schemas in submodule and expose them to other packages
Diffstat (limited to 'src/hydrilla/builder')
-rw-r--r-- | src/hydrilla/builder/build.py | 4 | ||||
m--------- | src/hydrilla/builder/schemas | 0 |
2 files changed, 1 insertions, 3 deletions
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 -Subproject ca1de2ed4a69a71f2f75552ade693d04ea1baa8 |