mirror of https://github.com/aminya/setup-cpp
fix: add the bin directory in python base exec prefix to the PATH
This commit is contained in:
parent
de9ae0b9ef
commit
46f6568a2e
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
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue