Publish DevRunbook source
Managed validation / full (push) Successful in 3m18s

This commit is contained in:
DevRunbook release export
2026-09-03 04:09:17 +02:00
commit cfd2804e27
928 changed files with 161642 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import { spawnSync } from 'node:child_process'
const candidates =
process.platform === 'win32'
? [
['py', ['-3']],
['python3', []],
['python', []],
]
: [
['python3', []],
['python', []],
]
for (const [command, prefix] of candidates) {
const result = spawnSync(command, [...prefix, ...process.argv.slice(2)], {
stdio: 'inherit',
})
if (result.error?.code === 'ENOENT') continue
process.exit(result.status ?? 1)
}
console.error('Python 3 was not found. Install Python 3 and retry.')
process.exit(1)