op setup: openpilot's own venv in a uv workspace, find op.sh's checkout from outside (#39237)

This commit is contained in:
Harald Schäfer
2026-11-28 11:09:35 -06:00
committed by firestar5683
parent e0a091f6c8
commit ff3b2ef1ca
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ function op_get_openpilot_dir() {
# Fallback to hardcoded directories if not found
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
for dir in "$(readlink -f "$SCRIPT_DIR/../..")" "$HOME/openpilot" "/data/openpilot"; do
for dir in "$(readlink -f "$SCRIPT_DIR/..")" "$HOME/openpilot" "/data/openpilot"; do
if [[ -f "$dir/launch_openpilot.sh" ]]; then
OPENPILOT_ROOT="$dir"
return 0
+2 -2
View File
@@ -127,8 +127,8 @@ function install_python_deps() {
uv self update || true
echo "installing python packages..."
uv sync --frozen --all-extras
source .venv/bin/activate
UV_PROJECT_ENVIRONMENT="$ROOT/.venv" uv sync --frozen --all-extras
source "$ROOT/.venv/bin/activate"
python3 scripts/lint/check_workflows.py --install
}