5
0
mirror of https://github.com/astral-sh/setup-uv.git synced 2025-12-17 11:05:59 +00:00

Add venv/bin as absolute path to PATH (#241)

Fixes: #239
This commit is contained in:
Kevin Stillhammer
2025-01-16 10:14:32 +01:00
committed by GitHub
parent 2487ffc9aa
commit 4e3dbecc19
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js generated vendored
View File

@@ -101686,7 +101686,7 @@ function setupPython() {
if (process.platform === "win32") { if (process.platform === "win32") {
venvBinPath = ".venv/Scripts"; venvBinPath = ".venv/Scripts";
} }
core.addPath(venvBinPath); core.addPath(path.resolve(venvBinPath));
core.exportVariable("VIRTUAL_ENV", path.resolve(".venv")); core.exportVariable("VIRTUAL_ENV", path.resolve(".venv"));
} }
}); });

View File

@@ -161,7 +161,7 @@ async function setupPython(): Promise<void> {
if (process.platform === "win32") { if (process.platform === "win32") {
venvBinPath = ".venv/Scripts"; venvBinPath = ".venv/Scripts";
} }
core.addPath(venvBinPath); core.addPath(path.resolve(venvBinPath));
core.exportVariable("VIRTUAL_ENV", path.resolve(".venv")); core.exportVariable("VIRTUAL_ENV", path.resolve(".venv"));
} }
} }