@echo off
chcp 65001 >nul
echo ================================
echo Thrift 完整流程工具 - 测试诊断
echo ================================
echo.

cd /d "%~dp0"

echo [1] 检查 Python 版本
python --version
echo.

echo [2] 检查依赖包
echo 检查 openpyxl...
python -c "import openpyxl; print('✓ openpyxl:', openpyxl.__version__)" 2>nul || echo "✗ 未安装 openpyxl"

echo 检查 thrift...
python -c "import thrift; print('✓ thrift:', thrift.__version__)" 2>nul || echo "✗ 未安装 thrift"

echo 检查 tkinter...
python -c "import tkinter; print('✓ tkinter 可用')" 2>nul || echo "✗ tkinter 不可用"

echo.
echo [3] 如有缺失依赖，请运行：安装依赖.bat
echo.

echo [4] 启动工具...
python integrated_pipeline.py

pause
