Skip to content

Commit

Permalink
fix: add pipxBinDir to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 24, 2024
1 parent f3a5dc3 commit 5f8ace2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/setup/setupPipPack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export async function setupPipPackWithPython(
if (isPipx && user) {
// install to user home
env.PIPX_HOME = await getPipxHome()
env.PIPX_BIN_DIR = getPipxBinDir()

const pipxBinDir = getPipxBinDir()
env.PIPX_BIN_DIR = pipxBinDir
await addPath(pipxBinDir)
}

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

0 comments on commit 5f8ace2

Please sign in to comment.