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" \ "$@"