Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Commit 2b4cc1b

Browse files
committed
fix(python): add bootstrap config.json if missing
1 parent 9c9a387 commit 2b4cc1b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

python/server.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ def load_config():
6161
print(f"Failed to load config: {e}")
6262
else:
6363
print("Using default config")
64+
try:
65+
with open(config_path, 'w', encoding='utf-8') as f:
66+
json.dump(DEFAULT_CONFIG, f, indent=2)
67+
print(f"Created config.json from internal defaults at {config_path}")
68+
except Exception as e:
69+
print(f"Failed to create default config.json: {e}")
6470

6571
def get_project_root():
6672
return os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

0 commit comments

Comments
 (0)