Fix Windows Python spawning

This commit is contained in:
2026-04-30 03:43:17 +09:00
parent bb965c061e
commit 178283be61
5 changed files with 11 additions and 5 deletions

View File

@@ -17,6 +17,7 @@ function splitCommandSpec(spec: string): string[] {
function canRun(command: string, args: string[]): boolean {
const result = spawnSync(command, [...args, "--version"], {
encoding: "utf8",
shell: process.platform === "win32",
});
return result.error == null && result.status === 0;
}