fix(scripts): align build_trees.sh with project shell conventions

Codex 审查发现两处偏离既有脚本惯例:
1. conda activate 改为 PYTHON=$(conda run ...) + ${PYTHON} 模式
2. 追加 source .env 确保 TREE_BUILD_API_CONCURRENCY 等工程配置可用
This commit is contained in:
2026-07-11 12:07:14 -04:00
parent 928ec8c37b
commit 0290005129
+5 -4
View File
@@ -28,11 +28,12 @@ VIDEO_CONCURRENCY="${VIDEO_CONCURRENCY:-16}"
export PYTHONUNBUFFERED=1 export PYTHONUNBUFFERED=1
# shellcheck source=/dev/null # shellcheck source=../.env
source "$(conda info --base)/etc/profile.d/conda.sh" source .env
conda activate Video-Tree-TRM
python tools/build_trees.py \ PYTHON="$(conda run -n Video-Tree-TRM which python)"
"${PYTHON}" tools/build_trees.py \
--out-dir store/videos \ --out-dir store/videos \
--video-concurrency "$VIDEO_CONCURRENCY" \ --video-concurrency "$VIDEO_CONCURRENCY" \
"$@" "$@"