From 5768145e751468463cb2c99c67444ae329017d1b Mon Sep 17 00:00:00 2001 From: bedroesb Date: Fri, 23 Feb 2024 16:49:54 +0100 Subject: [PATCH] path --- ena_upload/json_parsing/characteristic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ena_upload/json_parsing/characteristic.py b/ena_upload/json_parsing/characteristic.py index 84b2b60..826dfec 100644 --- a/ena_upload/json_parsing/characteristic.py +++ b/ena_upload/json_parsing/characteristic.py @@ -11,8 +11,8 @@ class IsaBase: @classmethod def validate_json(self, isa_json: Dict[str, str], schema): - schema_path = os.path.join(os.curdir, "ena_upload", "json_parsing", "json_schemas", schema) - + base_path = os.path.abspath(os.path.dirname(__file__)) + schema_path = os.path.join(base_path, 'json_schemas', schema) json_file = open(schema_path) json_schema = json.load(json_file)