From fb01dea5e4feab9c122c014873d0473bf6083e7c Mon Sep 17 00:00:00 2001 From: Jordan Bradford <36420801+jrdnbradford@users.noreply.github.com> Date: Fri, 2 Feb 2024 23:01:36 -0500 Subject: [PATCH] Working schema path --- tljh/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tljh/config.py b/tljh/config.py index 8f0767a..9bcd200 100644 --- a/tljh/config.py +++ b/tljh/config.py @@ -157,8 +157,8 @@ def remove_item_from_config(config, property_path, value): def validate_config(config): import json, jsonschema - cwd = os.getcwd() - config_schema_file = os.path.join(cwd, "config-schema.json") + pd = os.path.abspath(os.path.join(__file__, os.pardir)) + config_schema_file = os.path.join(pd, "config-schema.json") with open(config_schema_file) as f: config_schema = json.load(f)