npm run format

This commit is contained in:
Aparna Jyothi 2025-02-19 16:43:40 +05:30
parent cb0e07d80e
commit 7349bad731
2 changed files with 4 additions and 4 deletions

4
dist/setup/index.js vendored
View file

@ -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
// 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') { 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'); 'Scripts');
// Add the dynamically constructed path to the environment PATH variable // Add the dynamically constructed path to the environment PATH variable
core.addPath(userScriptsDir); core.addPath(userScriptsDir);

View file

@ -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
// 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') { 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( const userScriptsDir = path.join(
process.env['APPDATA'] || '', process.env['APPDATA'] || '',
'Python', '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' 'Scripts'
); );