mirror of https://github.com/aminya/setup-cpp
feat: add activateWinPython [skip ci]
This commit is contained in:
parent
cd02056faf
commit
0712d6f19e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -31,8 +31,7 @@ export async function setupPythonViaSystem(version: string, setupCppDir: string,
|
||||||
|
|
||||||
// Adding the bin dir to the path
|
// Adding the bin dir to the path
|
||||||
/** The directory which the tool is installed to */
|
/** The directory which the tool is installed to */
|
||||||
core.info(`Add ${binDir} to PATH`)
|
activateWinPython(binDir)
|
||||||
addPath(binDir)
|
|
||||||
|
|
||||||
return { installDir, binDir }
|
return { installDir, binDir }
|
||||||
}
|
}
|
||||||
|
@ -49,3 +48,8 @@ export async function setupPythonViaSystem(version: string, setupCppDir: string,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function activateWinPython(binDir: string) {
|
||||||
|
core.info(`Add ${binDir} to PATH`)
|
||||||
|
addPath(binDir)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue