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

11 lines
259 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 'detect_worker.py'