diff --git a/dist/setup/index.js b/dist/setup/index.js index 69415049..939d0864 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -99615,9 +99615,9 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest // Check for x32 or x86 and append the '-32' suffix // Check for x32 or x86 and append the '-32' suffix if (architecture === 'x32' || architecture === 'x86') { - arch = `32`; // Always add '-32' for both x32 and x86 architectures + arch = `-32`; // Always add '-32' for both x32 and x86 architectures } - const userScriptsDir = path.join(process.env['APPDATA'] || '', 'Python', `Python${major}${minor}-${arch}`, // Add architecture-specific folder (e.g., Python310-64 or Python310-32) + const userScriptsDir = path.join(process.env['APPDATA'] || '', 'Python', `Python${major}${minor}${arch}`, // Add architecture-specific folder (e.g., Python310-64 or Python310-32) 'Scripts'); // Add the dynamically constructed path to the environment PATH variable core.addPath(userScriptsDir); diff --git a/src/find-python.ts b/src/find-python.ts index d6d3ba61..032cd6d0 100644 --- a/src/find-python.ts +++ b/src/find-python.ts @@ -145,13 +145,13 @@ export async function useCpythonVersion( // Check for x32 or x86 and append the '-32' suffix // Check for x32 or x86 and append the '-32' suffix if (architecture === 'x32' || architecture === 'x86') { - arch = `32`; // Always add '-32' for both x32 and x86 architectures + arch = `-32`; // Always add '-32' for both x32 and x86 architectures } const userScriptsDir = path.join( process.env['APPDATA'] || '', 'Python', - `Python${major}${minor}-${arch}`, // Add architecture-specific folder (e.g., Python310-64 or Python310-32) + `Python${major}${minor}${arch}`, // Add architecture-specific folder (e.g., Python310-64 or Python310-32) 'Scripts' );