Working schema path

This commit is contained in:
Jordan Bradford
2024-02-02 23:01:36 -05:00
parent 78d4b7fbc4
commit fb01dea5e4

View File

@@ -157,8 +157,8 @@ def remove_item_from_config(config, property_path, value):
def validate_config(config): def validate_config(config):
import json, jsonschema import json, jsonschema
cwd = os.getcwd() pd = os.path.abspath(os.path.join(__file__, os.pardir))
config_schema_file = os.path.join(cwd, "config-schema.json") config_schema_file = os.path.join(pd, "config-schema.json")
with open(config_schema_file) as f: with open(config_schema_file) as f:
config_schema = json.load(f) config_schema = json.load(f)