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)