Fix python runner script.

This commit is contained in:
Viktor Kovacs 2021-04-01 16:27:58 +02:00
parent 9ac4415eee
commit 1d956e86dd

View File

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