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