Skip to content

Commit

Permalink
fix: handle corner case of user instalilng uv into a uv environment
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Apr 14, 2024
1 parent 7415271 commit 3b8e081
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nox/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import pathlib
import re
import subprocess
import shutil
import sys
import unicodedata
from collections.abc import (
Expand Down Expand Up @@ -561,6 +562,7 @@ def _run(
self.virtualenv.venv_backend == "uv"
and args[0] == "uv"
and nox.virtualenv.UV != "uv"
and shutil.which("uv", path=self.bin) is None
):
args = (nox.virtualenv.UV, *args[1:])

Expand Down

0 comments on commit 3b8e081

Please sign in to comment.