ModelHandle/tools/run_python.js
2021-04-01 16:27:58 +02:00

9 lines
224 B
JavaScript

let cp = require ('child_process');
let pythonExecutable = 'python';
if (process.platform !== 'win32') {
pythonExecutable = 'python3';
}
cp.spawnSync (pythonExecutable, process.argv.slice (2), {
stdio: "inherit"
});