summaryrefslogtreecommitdiff
path: root/src/hydrilla/server/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/hydrilla/server/config.py')
-rw-r--r--src/hydrilla/server/config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hydrilla/server/config.py b/src/hydrilla/server/config.py
index 4b5bcd7..0155e83 100644
--- a/src/hydrilla/server/config.py
+++ b/src/hydrilla/server/config.py
@@ -68,7 +68,10 @@ config_schema = {
}
}
-def load(config_paths: list[Path], can_fail: list[bool]=[]) -> dict:
+here = Path(__file__).resolve().parent
+
+def load(config_paths: list[Path]=[here / 'config.json'],
+ can_fail: list[bool]=[]) -> dict:
config = {}
bools_missing = max(0, len(config_paths) - len(can_fail))