midi: fix script path

This commit is contained in:
jean-emmanuel 2017-03-07 12:25:22 +01:00
parent e86790c658
commit 7ae023663e

View file

@ -2,8 +2,7 @@ var PythonShell = require('python-shell'),
path = require('path'),
settings = require('./settings')
var py = new PythonShell(path.resolve('/main/midi.py'),{mode:'text', args: [
var py = new PythonShell('midi.py', {scriptPath:__dirname, mode:'text', args: [
settings.read('debug') ? 'debug' : '',
...settings.read('midi')
]