ModelHandle/tools/run_python.js

9 lines
215 B
JavaScript

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