From af006b58ce0f9fd5f68e438198aa9afb70635330 Mon Sep 17 00:00:00 2001 From: Aparna Jyothi Date: Thu, 3 Jul 2025 13:34:44 +0530 Subject: [PATCH] updated the comments --- dist/setup/index.js | 2 ++ src/find-python.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/setup/index.js b/dist/setup/index.js index fd3d14a3..ad190129 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -96164,6 +96164,8 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest core.addPath(installDir); core.addPath(_binDir); if (utils_1.IS_WINDOWS) { + // Add --user directory + // `installDir` from tool cache should look like $RUNNER_TOOL_CACHE/Python//x64/ // Extract version details const version = path.basename(path.dirname(installDir)); const major = semver.major(version); diff --git a/src/find-python.ts b/src/find-python.ts index 2e317d9c..c175702d 100644 --- a/src/find-python.ts +++ b/src/find-python.ts @@ -152,6 +152,8 @@ export async function useCpythonVersion( core.addPath(_binDir); if (IS_WINDOWS) { + // Add --user directory + // `installDir` from tool cache should look like $RUNNER_TOOL_CACHE/Python//x64/ // Extract version details const version = path.basename(path.dirname(installDir)); const major = semver.major(version);