From 5f8ace2495677428e5f41c5bb9fc9926bce182a6 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 24 Jan 2024 12:12:19 -0800 Subject: [PATCH] fix: add pipxBinDir to PATH --- src/utils/setup/setupPipPack.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/setup/setupPipPack.ts b/src/utils/setup/setupPipPack.ts index a70e2999..663021d1 100644 --- a/src/utils/setup/setupPipPack.ts +++ b/src/utils/setup/setupPipPack.ts @@ -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], {