重构DBN模型

This commit is contained in:
wzy-warehouse
2026-06-12 09:45:35 +08:00
parent b7502954ba
commit 118dbd18cf
12 changed files with 148 additions and 131 deletions
+5 -4
View File
@@ -34,9 +34,6 @@ class AppLauncher:
# 检查虚拟环境
check_virtualenv(self.project_root)
# 检查安装依赖
check_dependencies(self.project_root)
# 检查是否正在使用虚拟环境运行
import platform
import sys
@@ -57,12 +54,16 @@ class AppLauncher:
print("检测到未使用虚拟环境,正在切换到虚拟环境...")
print("=" * 50)
# 使用虚拟环境的Python重新启动应用
# 使用虚拟环境的Python重新启动应用(不传递参数避免重复检查)
import subprocess
cmd = [str(venv_python)] + sys.argv
subprocess.run(cmd, check=True)
return
# 以下代码仅在虚拟环境中执行
# 检查安装依赖(只执行一次)
check_dependencies(self.project_root)
# 启动应用
print("\n" + "=" * 50)
print("✓ 所有检查通过,准备启动应用...")