#!/usr/bin/env bash # Load sanitized env then exec orchestrator with same environment (uses .venv if exists) set -euo pipefail IFS=$'\n\t' BASE="$(cd "$(dirname "$0")/.." && pwd)" SAN="$BASE/scripts/sanitize_env.sh" if [ -x "$SAN" ]; then eval "$("$SAN")" fi # Prefer virtualenv's python if present if [ -x "$BASE/.venv/bin/python" ]; then exec "$BASE/.venv/bin/python" "$BASE/orchestrator/orchestrator.py" else exec python3 "$BASE/orchestrator/orchestrator.py" fi