fix: add pipxBinDir to PATH

This commit is contained in:
Amin Yahyaabadi 2024-01-24 12:12:19 -08:00
parent f3a5dc3f05
commit 5f8ace2495
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
1 changed files with 4 additions and 1 deletions

View File

@ -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], {