const PythonShell = require('python-shell');
const options = {
pythonPath: './notthepythonpath',
scriptPath: 'scriptdir',
args: [0, 0, 400, 400, 1, store.get('outputPath')],
mode: 'text',
};
let pyshell = new PythonShell('script.py', options);
pyshell.on('error', (err) => {
alert(err);
});
I've tried the callback ,and tried on('error') but both doesn't seem to catch it.
Reactions are currently unavailable
I've tried the callback ,and tried on('error') but both doesn't seem to catch it.