# Thin wrapper. Real logic is tools/ws.py. param([Parameter(ValueFromRemainingArguments = $true)][string[]]$WsArgs) $here = Split-Path -Parent $MyInvocation.MyCommand.Path $py = Get-Command python -ErrorAction SilentlyContinue if (-not $py) { $py = Get-Command py -ErrorAction SilentlyContinue } if (-not $py) { Write-Error "需要 Python 3"; exit 2 } if (-not $WsArgs) { $WsArgs = @("--help") } & $py.Source (Join-Path $here "tools\ws.py") @WsArgs exit $LASTEXITCODE