mirror of
https://github.com/actions/setup-python.git
synced 2026-01-19 19:38:56 +08:00
updated the comments
This commit is contained in:
parent
12428c6332
commit
af006b58ce
2 changed files with 4 additions and 0 deletions
|
|
@ -152,6 +152,8 @@ export async function useCpythonVersion(
|
|||
core.addPath(_binDir);
|
||||
|
||||
if (IS_WINDOWS) {
|
||||
// Add --user directory
|
||||
// `installDir` from tool cache should look like $RUNNER_TOOL_CACHE/Python/<semantic version>/x64/
|
||||
// Extract version details
|
||||
const version = path.basename(path.dirname(installDir));
|
||||
const major = semver.major(version);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue