Files
getDomain/domainCheck/start_app.ps1
2026-04-16 13:33:06 +08:00

11 lines
254 B
PowerShell

$ErrorActionPreference = 'Stop'
$env:PYTHONUTF8 = '1'
$python = Join-Path $PSScriptRoot '.venv\Scripts\python.exe'
if (-not (Test-Path $python)) {
throw "未找到虚拟环境解释器: $python"
}
Set-Location $PSScriptRoot
& $python 'app\main.py'