feat: add activateWinPython [skip ci]

This commit is contained in:
Amin Yahyaabadi 2021-09-20 07:35:17 -05:00
parent cd02056faf
commit 0712d6f19e
3 changed files with 8 additions and 4 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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)
}