Sshenlianadd env check
662a0e3c创建于 2025年7月2日历史提交
#!/bin/bash
readonly BASE_DIR=$(
    cd "$(dirname $0)" >/dev/null 2>&1
    pwd -P
)

main() {
    if [[ -f ~/.local/ascend_deployer_rc ]]; then
      source ~/.local/ascend_deployer_rc
    fi
    python3 -V > /dev/null 2>&1
    if [[ $? != 0 ]]; then
      python ${BASE_DIR}/start_deploy.py $*
    else
      python3 ${BASE_DIR}/start_deploy.py $*
    fi
}

main $*
main_status=$?
exit ${main_status}