修改启动前检查方式

This commit is contained in:
wzy-warehouse
2026-05-30 15:03:39 +08:00
parent f4ee8fa795
commit d2ffaad7a3
4 changed files with 54 additions and 42 deletions
+3 -1
View File
@@ -3,13 +3,15 @@
使用 Dynaconf 进行环境隔离配置
"""
from pathlib import Path
from app.core.launcher import AppLauncher
# 添加项目根目录到Python路径
project_root = Path(__file__).parent
if __name__ == "__main__":
# 延迟导入,确保在依赖安装前不会导入第三方库
from app.core.launcher import AppLauncher
# 创建并运行启动器
launcher = AppLauncher(project_root)
launcher.run()