修改启动前检查方式
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user