-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_gui.ps1
More file actions
34 lines (25 loc) · 786 Bytes
/
run_gui.ps1
File metadata and controls
34 lines (25 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Param(
[string]$Symbol,
[string]$Interval,
[int]$Bars
)
$ErrorActionPreference = "Stop"
Write-Host ""
Write-Host "=== Temporal Market Analysis Bot — Run GUI (Windows) ==="
$ProjectRoot = Split-Path -Parent $MyInvocation.MyCommand.Path
Set-Location $ProjectRoot
$VenvPython = Join-Path $ProjectRoot ".venv\Scripts\python.exe"
if (-not (Test-Path $VenvPython)) {
Write-Host ""
Write-Host "Virtual environment not found at .venv."
Write-Host "Run setup.ps1 first:"
Write-Host " .\setup.ps1"
exit 1
}
Write-Host ""
Write-Host "Starting GUI using virtual environment ..."
$argsList = @("main_gui.py")
if ($Symbol) { $argsList += $Symbol }
if ($Interval) { $argsList += $Interval }
if ($Bars) { $argsList += $Bars }
& $VenvPython @argsList