fix: add the python Scripts/bin path to the path for linux

This commit is contained in:
Amin Yahyaabadi 2022-11-04 16:03:42 -07:00
parent 46f6568a2e
commit 0f4b1a6238
5 changed files with 6 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,8 @@ export async function addPythonBaseExecPrefix(python: string) {
// detection using python.sys
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, "bin"))
// any of these are possible depending on the operating system!
dirs.push(join(base_exec_prefix, "Scripts"), join(base_exec_prefix, "Scripts", "bin"), join(base_exec_prefix, "bin"))
// exclude the non existing ones
dirs = dirs.filter((dir) => existsSync(dir))