Skip to content

Commit af006b5

Browse files
updated the comments
1 parent 12428c6 commit af006b5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dist/setup/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96164,6 +96164,8 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
9616496164
core.addPath(installDir);
9616596165
core.addPath(_binDir);
9616696166
if (utils_1.IS_WINDOWS) {
96167+
// Add --user directory
96168+
// `installDir` from tool cache should look like $RUNNER_TOOL_CACHE/Python/<semantic version>/x64/
9616796169
// Extract version details
9616896170
const version = path.basename(path.dirname(installDir));
9616996171
const major = semver.major(version);

src/find-python.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ export async function useCpythonVersion(
152152
core.addPath(_binDir);
153153

154154
if (IS_WINDOWS) {
155+
// Add --user directory
156+
// `installDir` from tool cache should look like $RUNNER_TOOL_CACHE/Python/<semantic version>/x64/
155157
// Extract version details
156158
const version = path.basename(path.dirname(installDir));
157159
const major = semver.major(version);

0 commit comments

Comments
 (0)