File debugging

This commit is contained in:
2026-01-28 16:20:03 -05:00
parent 52bd3a9af7
commit b5d4b9b96c

View File

@@ -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: