updated the comments

This commit is contained in:
Aparna Jyothi 2025-07-03 13:34:44 +05:30
parent 12428c6332
commit af006b58ce
2 changed files with 4 additions and 0 deletions

View file

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