From 02900051290bae1c5cf3f23497c623f718d21c78 Mon Sep 17 00:00:00 2001 From: iomgaa Date: Sat, 11 Jul 2026 12:07:14 -0400 Subject: [PATCH] fix(scripts): align build_trees.sh with project shell conventions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Codex 审查发现两处偏离既有脚本惯例: 1. conda activate 改为 PYTHON=$(conda run ...) + ${PYTHON} 模式 2. 追加 source .env 确保 TREE_BUILD_API_CONCURRENCY 等工程配置可用 --- scripts/build_trees.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/build_trees.sh b/scripts/build_trees.sh index 6406a55..61c886f 100755 --- a/scripts/build_trees.sh +++ b/scripts/build_trees.sh @@ -28,11 +28,12 @@ VIDEO_CONCURRENCY="${VIDEO_CONCURRENCY:-16}" export PYTHONUNBUFFERED=1 -# shellcheck source=/dev/null -source "$(conda info --base)/etc/profile.d/conda.sh" -conda activate Video-Tree-TRM +# shellcheck source=../.env +source .env -python tools/build_trees.py \ +PYTHON="$(conda run -n Video-Tree-TRM which python)" + +"${PYTHON}" tools/build_trees.py \ --out-dir store/videos \ --video-concurrency "$VIDEO_CONCURRENCY" \ "$@"