From 850fba7b6db30731fe38921858036b4ee923337d Mon Sep 17 00:00:00 2001 From: Aparna Jyothi Date: Wed, 19 Feb 2025 17:15:55 +0530 Subject: [PATCH] debug update --- dist/setup/index.js | 3 +-- src/find-python.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 939d0864..01d4e3cc 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -99613,11 +99613,10 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest // For Python >= 3.10 and architecture!= 'x64', add the architecture-specific folder to the path let arch = ''; // 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 } - 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 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 032cd6d0..1a9e94d4 100644 --- a/src/find-python.ts +++ b/src/find-python.ts @@ -142,7 +142,7 @@ export async function useCpythonVersion( if (major > 3 || (major === 3 && minor >= 10)) { // For Python >= 3.10 and architecture!= 'x64', add the architecture-specific folder to the path let arch = ''; - // 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 @@ -151,7 +151,7 @@ export async function useCpythonVersion( 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 or Python310-32) 'Scripts' );