mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Working schema path
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user