""" 项目启动脚本 - 支持多环境和跨平台 使用 Dynaconf 进行环境隔离配置 """ from pathlib import Path # 添加项目根目录到Python路径 project_root = Path(__file__).parent if __name__ == "__main__": # 延迟导入,确保在依赖安装前不会导入第三方库 from app.core.launcher import AppLauncher # 创建并运行启动器 launcher = AppLauncher(project_root) launcher.run()