fix: 修复若干可用性问题

This commit is contained in:
2026-05-07 18:17:39 +08:00
parent 7bf78ecdff
commit dd2469b49a
11 changed files with 12 additions and 57 deletions

View File

@@ -7,24 +7,6 @@ import pickle
logger = get_logger(__name__)
def environment_check():
from pathlib import Path
logger.debug("检查环境路径")
subdir = ["cache/voice", "repo", "global", "config"]
for i in subdir:
i = Path(config_var.get()["global"]["paths"]["data"]) / i
if not i.exists():
logger.info("创建目录: %s", i)
print(f"创建 {i}")
i.mkdir(exist_ok=True, parents=True)
else:
logger.debug("目录已存在: %s", i)
print(f"找到 {i}")
logger.debug("环境检查完成")
def start_debug_server(app):
logger = get_logger("zmq_debug")
context = zmq.Context()
@@ -56,7 +38,6 @@ def start_debug_server(app):
def main():
environment_check()
app = HeurAMSApp()