fix: add the bin directory in python base exec prefix to the PATH

This commit is contained in:
Amin Yahyaabadi 2022-11-04 15:40:46 -07:00
parent de9ae0b9ef
commit 46f6568a2e
5 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -140,7 +140,7 @@ export async function addPythonBaseExecPrefix(python: string) {
// detection using python.sys // detection using python.sys
const base_exec_prefix = (await getExecOutput(`${python} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim() const base_exec_prefix = (await getExecOutput(`${python} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim()
dirs.push(join(base_exec_prefix, "Scripts"), join(base_exec_prefix, "Scripts", "bin")) dirs.push(join(base_exec_prefix, "Scripts"), join(base_exec_prefix, "bin"))
// exclude the non existing ones // exclude the non existing ones
dirs = dirs.filter((dir) => existsSync(dir)) dirs = dirs.filter((dir) => existsSync(dir))