Skip to content

Commit 018ab20

Browse files
authored
Fix interpreter (#53)
1 parent 4ee9c74 commit 018ab20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tox_uv/_venv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def create_python_env(self) -> None:
126126
if (base.major, base.minor) == sys.version_info[:2] and (sys.implementation.name.lower() == imp):
127127
version_spec = sys.executable
128128
else:
129-
uv_imp = "python" if (imp and imp == "cpython") else imp
129+
uv_imp = "" if (imp and imp == "cpython") else imp
130130
version_spec = f"{uv_imp or ''}{base.major}.{base.minor}" if base.minor else f"{uv_imp or ''}{base.major}"
131131
cmd: list[str] = [self.uv, "venv", "-p", version_spec]
132132
if self.options.verbosity > 2: # noqa: PLR2004

0 commit comments

Comments
 (0)