mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-07-27 08:28:28 -06:00
Fixed Agent Launch Script Error
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user