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: