# Windows wrapper — launches the cross-platform installer wizard. # Usage: powershell -ExecutionPolicy Bypass -File install.ps1 $ErrorActionPreference = "Stop" $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path # Find Python 3.9+ $Python = $null foreach ($candidate in @("python3", "python")) { $bin = Get-Command $candidate -ErrorAction SilentlyContinue if ($bin) { $version = & $bin.Source -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')" $parts = $version -split "\." if ([int]$parts[0] -ge 3 -and [int]$parts[1] -ge 9) { $Python = $bin.Source break } } } if (-not $Python) { Write-Error "Python 3.9+ is required to run the installer. Install Python 3.9+ and try again." exit 1 } & $Python (Join-Path $ScriptDir "install_wizard.py")