Skip to content

Commit 5f8ace2

Browse files
committed
fix: add pipxBinDir to PATH
1 parent f3a5dc3 commit 5f8ace2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/setup/setupPipPack.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ export async function setupPipPackWithPython(
6262
if (isPipx && user) {
6363
// install to user home
6464
env.PIPX_HOME = await getPipxHome()
65-
env.PIPX_BIN_DIR = getPipxBinDir()
65+
66+
const pipxBinDir = getPipxBinDir()
67+
env.PIPX_BIN_DIR = pipxBinDir
68+
await addPath(pipxBinDir)
6669
}
6770

6871
execaSync(givenPython, ["-m", pip, ...upgradeFlag, ...userFlag, nameAndVersion], {

0 commit comments

Comments
 (0)