diff --git a/tools/op.sh b/tools/op.sh index 9f50400fef..2fbdcde223 100755 --- a/tools/op.sh +++ b/tools/op.sh @@ -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 diff --git a/tools/setup_dependencies.sh b/tools/setup_dependencies.sh index f2a42224e0..29d388d311 100755 --- a/tools/setup_dependencies.sh +++ b/tools/setup_dependencies.sh @@ -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 }