- #!/bin/sh
- set -eu
- ROOT=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
- cd "$ROOT"
- if [ -x "$ROOT/runtime/bin/python3" ]; then
- PY="$ROOT/runtime/bin/python3"
- elif [ -x "$ROOT/.venv/bin/python" ]; then
- PY="$ROOT/.venv/bin/python"
- else
- echo "请先运行 ./START_HERE.sh 或 ./INSTALL.sh"
- exit 1
- fi
- if [ -f "$ROOT/app/policy_template.py" ]; then
- exec "$PY" "$ROOT/app/policy_template.py"
- fi
- exec "$PY" -m hth_sdk policy
|