Compare commits
2 Commits
6066946096
...
ac2d9a0240
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac2d9a0240 | ||
|
|
2f80a4ac76 |
@@ -26,7 +26,8 @@ def load_config(config_path: str | None = None) -> dict:
|
||||
config_path = os.path.join(base_dir, "config.json")
|
||||
|
||||
if os.path.exists(config_path):
|
||||
with open(config_path, "r", encoding="utf-8") as f:
|
||||
# Use utf-8-sig to handle Windows BOM (Byte Order Mark)
|
||||
with open(config_path, "r", encoding="utf-8-sig") as f:
|
||||
return json.load(f)
|
||||
return {}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"compute": "int8"
|
||||
},
|
||||
"backend": {
|
||||
"embedded": false,
|
||||
"embedded": true,
|
||||
"host": "127.0.0.1",
|
||||
"port": 8000,
|
||||
"database": {
|
||||
|
||||
Reference in New Issue
Block a user