Files
growth_report/start_app.bat

42 lines
1.1 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
:: ------------------------------------------------
:: 自动切换编码为 UTF-8解决中文乱码问题
chcp 65001 >nul
:: ------------------------------------------------
title 幼儿园成长报告助手
cd /d "%~dp0"
echo.
echo ==========================================
echo 正在启动 幼儿园成长报告助手
echo ==========================================
echo.
:: 检查 uv 是否安装
uv --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] 未检测到 uv 工具!
echo 请先运行: pip install uv
pause
exit /b
)
echo [INFO] 环境检查通过,正在运行主程序...
echo ---------------------------------------------------
:: 这里的 gui_app.py 就是你刚才保存的那个带界面的 Python 文件名
:: 如果你的文件名不一样,请修改下面这一行
uv run main.py
:: 错误捕获
if %errorlevel% neq 0 (
echo.
echo ---------------------------------------------------
echo [ERROR] 程序异常退出 (代码: %errorlevel%)
echo 请检查上方报错信息。
pause
) else (
echo.
echo [INFO] 程序已正常结束。
)