logic update

This commit is contained in:
Aparna Jyothi 2025-04-22 12:38:37 +05:30
parent 4260a613f9
commit 1df3e3315a
3 changed files with 6 additions and 11 deletions

View file

@ -175,7 +175,9 @@ export async function useCpythonVersion(
core.addPath(pythonPath);
} else {
// Handle Python < 3.10
const baseName = `Python${major}${minor}`;
const isFreeThreaded = core.getBooleanInput('freethreaded');
const suffix = isFreeThreaded ? 't' : '';
const baseName = `Python${major}${minor}${suffix}`;
const pythonPath = path.join(
process.env['APPDATA'] || '',