File debugging
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user