We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b093d0c commit ca7dfa4Copy full SHA for ca7dfa4
1 file changed
src/webapp/validation.py
@@ -106,10 +106,12 @@ def validate_dataset(
106
incoming = set(df.columns)
107
108
# 1) load schemas
109
- base_schema_path = "validation_schemas/base_schema.json"
+ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
110
+ base_schema_path = os.path.join(BASE_DIR, "validation_schemas/base_schema.json")
111
base_schema = load_json(base_schema_path)
112
ext_schema = None
- extension_schema_path = f"validation_schemas/{institution_id}_schema_extension.json"
113
+
114
+ extension_schema_path = os.path.join(BASE_DIR, f"validation_schemas/{institution_id}_schema_extension.json")
115
if extension_schema_path and os.path.exists(extension_schema_path):
116
ext_schema = load_json(extension_schema_path)
117
0 commit comments