We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d2e2a3 commit 562498bCopy full SHA for 562498b
core/config.py
@@ -88,6 +88,7 @@ def concurreny_enable_cluster(self) -> bool:
88
PROJECT = "PythonOpenBMCLAPI"
89
USER_AGENT = f"openbmclapi-cluster/{API_VERSION} {PROJECT}/{VERSION}"
90
ROOT_PATH = Path(__file__).parent.parent
91
+ROOT = ROOT_PATH / "config"
92
DEFAULT_CONFIG = {
93
"advanced.locale": "zh_cn",
94
"advanced.debug": False,
@@ -101,6 +102,8 @@ def concurreny_enable_cluster(self) -> bool:
101
102
"cert.cert": None,
103
}
104
105
+ROOT.mkdir(exist_ok=True, parents=True)
106
+
107
cfg = Config()
108
109
DEBUG = bool(cfg.get("advanced.debug")) or False
0 commit comments