Fixed Agent Launch Script Error

This commit is contained in:
2025-04-29 05:09:24 -06:00
parent e5e5b26a4c
commit 362d4a288c

View File

@ -192,7 +192,10 @@ switch ($choice) {
$agentRequirements = "Data\Agent\agent-requirements.txt" $agentRequirements = "Data\Agent\agent-requirements.txt"
$agentDestinationFolder = "$venvFolder\Borealis" $agentDestinationFolder = "$venvFolder\Borealis"
$agentDestinationFile = "$venvFolder\Borealis\borealis-agent.py" $agentDestinationFile = "$venvFolder\Borealis\borealis-agent.py"
$venvPython = Join-Path $venvFolder 'Scripts\python.exe'
# build the absolute path to python.exe inside the venv
$venvPython = Join-Path $scriptDir $venvFolder
$venvPython = Join-Path $venvPython 'Scripts\python.exe'
<# <#
Step: Create Virtual Environment & Copy Agent Script Step: Create Virtual Environment & Copy Agent Script
@ -221,11 +224,13 @@ switch ($choice) {
<# <#
Step: Launch Agent Step: Launch Agent
#> #>
Push-Location $venvFolder Run-Step "Launch Borealis Agent" {
Write-Host "`nLaunching Borealis Agent..." -ForegroundColor Blue Write-Host "`nLaunching Borealis Agent..." -ForegroundColor Blue
Write-Host "====================================================================================" Write-Host "===================================================================================="
& $venvPython "Borealis\borealis-agent.py" # call python with the absolute interpreter path and the absolute script path
Pop-Location $agentScript = Join-Path $scriptDir $agentDestinationFile
& $venvPython $agentScript
}
} }
default { default {