run.sh 581 B

123456789101112
  1. #!/bin/sh
  2. # 观澜 · 模块运行入口(P9 双模)。模块: app_algorithmModel
  3. HERE=$(cd "$(dirname "$0")" && pwd)
  4. ROOT=$(cd "$HERE/.." && pwd)
  5. if [ -f "$ROOT/guanlan.py" ]; then
  6. PY="$ROOT/.venv/bin/python"; [ -x "$PY" ] || PY="$ROOT/.venv/Scripts/python.exe"
  7. [ -x "$PY" ] || PY=$(command -v python3 || command -v python)
  8. exec "$PY" "$ROOT/guanlan.py" serve "$@"
  9. fi
  10. PY=$(command -v python3 || command -v python)
  11. [ -n "$PY" ] || { echo "[X] 找不到 python3"; exit 2; }
  12. exec "$PY" "$ROOT/app_common/app_common_guanlan/bootstrap.py" run --module app_algorithmModel "$@"