Fix EE python path candidate list

This commit is contained in:
2025-10-15 00:32:47 -06:00
parent 01189b4b34
commit 94250212de

View File

@@ -531,10 +531,10 @@ function Ensure-AnsibleExecutionEnvironment {
}
$pythonCandidates = @(
Join-Path $eeRoot 'Scripts\python.exe',
Join-Path $eeRoot 'Scripts\python3.exe',
Join-Path $eeRoot 'bin\python3',
Join-Path $eeRoot 'bin\python'
(Join-Path $eeRoot 'Scripts\python.exe')
(Join-Path $eeRoot 'Scripts\python3.exe')
(Join-Path $eeRoot 'bin\python3')
(Join-Path $eeRoot 'bin\python')
)
$existingPython = $pythonCandidates | Where-Object { Test-Path $_ -PathType Leaf } | Select-Object -First 1