From b5d4b9b96c5bb4c36d0f85a39d3d5535e240860a Mon Sep 17 00:00:00 2001 From: jerick Date: Wed, 28 Jan 2026 16:20:03 -0500 Subject: [PATCH] File debugging --- config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 75c42eb..790adfa 100644 --- a/config.py +++ b/config.py @@ -16,8 +16,12 @@ class DynamicConfig: def _load_from_json(self): """Load config from JSON file if it exists""" - path = Path("data/config.json") + # Use path relative to this file, not current working directory + config_dir = Path(__file__).parent + path = config_dir / "data" / "config.json" + print(f"[CONFIG] Looking for config at: {path.absolute()}") if not path.exists(): + print(f"[CONFIG] Config file not found at {path.absolute()}") return {} try: