You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

36 lines
906 B

#!/bin/bash
# 机构名称匹配工具启动脚本
echo "============================================================"
echo "新疆各政企单位机构名称匹配工具"
echo "============================================================"
# 检查Python环境
if ! command -v python3 &> /dev/null; then
echo "错误: 未找到Python3,请先安装Python3"
exit 1
fi
# 检查配置文件
if [ ! -f "config.yaml" ]; then
echo "错误: 配置文件config.yaml不存在"
echo "请先配置数据库连接信息"
exit 1
fi
# 检查依赖
echo "检查Python依赖..."
python3 -c "import dmPython, pandas, loguru, fuzzywuzzy" 2>/dev/null
if [ $? -ne 0 ]; then
echo "安装Python依赖..."
pip3 install -r requirements.txt
fi
# 创建必要目录
mkdir -p output logs temp
# 运行程序
echo "启动机构名称匹配程序..."
python3 main.py "$@"
echo "程序执行完成!"