fix: 初始化数据库文件夹

This commit is contained in:
DLmaster361
2025-08-25 15:27:52 +08:00
parent 92a4ed9529
commit 52fbd9225d

View File

@@ -656,10 +656,10 @@ class AppConfig(GlobalConfig):
self.log_path = Path.cwd() / "debug/app.log"
self.database_path = Path.cwd() / "data/data.db"
self.config_path = Path.cwd() / "config"
self.key_path = Path.cwd() / "data/key"
self.history_path = Path.cwd() / "history"
# 检查目录
self.log_path.parent.mkdir(parents=True, exist_ok=True)
self.database_path.parent.mkdir(parents=True, exist_ok=True)
self.config_path.mkdir(parents=True, exist_ok=True)
self.history_path.mkdir(parents=True, exist_ok=True)