Skip to content

Commit 8ece92b

Browse files
Copilotbytemain
andauthored
Clarify Windows pip path variables
Agent-Logs-Url: https://github.com/version-fox/vfox-python/sessions/62cb80ef-ebad-4aa5-8791-70cc74b8efc5 Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
1 parent 39e8329 commit 8ece92b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib/util.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,14 @@ local function containsTraversalSegment(value)
242242
end
243243

244244
local function findUnsupportedControlCharacter(value)
245-
local controlCharStart = nil
245+
local firstControlCharPos = nil
246246
for _, char in ipairs({ "\r", "\n", string.char(0) }) do
247247
local position = string.find(value, char, 1, true)
248-
if position and (controlCharStart == nil or position < controlCharStart) then
249-
controlCharStart = position
248+
if position and (firstControlCharPos == nil or position < firstControlCharPos) then
249+
firstControlCharPos = position
250250
end
251251
end
252-
return controlCharStart
252+
return firstControlCharPos
253253
end
254254

255255
local function shellQuote(value)
@@ -599,10 +599,10 @@ local function ensureWindowsUvBuildPip(path)
599599
return
600600
end
601601

602-
local bundledPath = path .. "\\Lib\\ensurepip\\_bundled"
602+
local windowsBundledPath = path .. "\\Lib\\ensurepip\\_bundled"
603603
command = powerShellPythonCommand(pythonExe, {
604604
"-E", "-s", "-m", "pip", "install", "--force-reinstall", "--no-index",
605-
"--find-links", bundledPath, "pip"
605+
"--find-links", windowsBundledPath, "pip"
606606
})
607607
exitCode = os.execute(command)
608608
if not commandSucceeded(exitCode) then

0 commit comments

Comments
 (0)