fix: 改进代码

This commit is contained in:
2026-01-04 04:46:19 +08:00
parent 5f64ae7250
commit 1c297d3949
34 changed files with 87 additions and 1570 deletions

View File

@@ -17,9 +17,9 @@ def environment_check():
from pathlib import Path
logger.debug("检查环境路径")
subdir = ['cache/voice', 'repo', 'global', 'config']
subdir = ["cache/voice", "repo", "global", "config"]
for i in subdir:
i = Path(config_var.get()['paths']['data']) / i
i = Path(config_var.get()["paths"]["data"]) / i
if not i.exists():
logger.info("创建目录: %s", i)
print(f"创建 {i}")