Files
FishServer/scripts/measure_debug.sh

12 lines
505 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# 从仓库根目录运行单条鱼测量(与 fish_api / measure-watch 同一子进程逻辑)。
# 用法bash scripts/measure_debug.sh --fish-id 14
# 若在 fish_api 目录下可直接python -m app.measure_debug_cli --fish-id 14
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT/fish_api"
if command -v uv >/dev/null 2>&1; then
exec uv run python -m app.measure_debug_cli "$@"
fi
exec "${PYTHON:-python3}" -m app.measure_debug_cli "$@"