1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-09 12:52:20 +02:00

update the logic

This commit is contained in:
Aparna Jyothi 2025-02-19 13:18:07 +05:30
parent baf938aaae
commit 1140d87ee4
2 changed files with 6 additions and 4 deletions

View file

@ -139,8 +139,9 @@ export async function useCpythonVersion(
const major = semver.major(version);
const minor = semver.minor(version);
if (major >= 3 && (major > 3 || minor >= 10)) {
const arch = architecture === 'x64' ? '64' : '32';
if (parseFloat(version) >= 3.10 && architecture !== 'x64') {
// For Python >= 3.10 and architecture!= 'x64', add the architecture-specific folder to the path
const arch = architecture === '32';
const userScriptsDir = path.join(
process.env['APPDATA'] || '',