The tracked launcher now checks for .venv/bin/python3 under the repo and uses it if present, else falls back to system python3. Works pre-deploy (no venv) and post-deploy (venv exists) without being modified. Deploy no longer regenerates the file, so `git pull` on a deployed box won't conflict with the launcher. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
10 lines
321 B
Bash
Executable File
10 lines
321 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Thin launcher: prefer the repo venv if deploy.sh created one,
|
|
# else fall back to system python3.
|
|
set -euo pipefail
|
|
REPO="$(cd "$(dirname "$(readlink -f "$0")")/.." && pwd)"
|
|
if [ -x "$REPO/.venv/bin/python3" ]; then
|
|
exec "$REPO/.venv/bin/python3" -m pipekit "$@"
|
|
fi
|
|
exec python3 -m pipekit "$@"
|