midi: add path option

This commit is contained in:
jean-emmanuel 2019-07-11 16:43:52 +02:00
parent cddddb5bb2
commit 9110a8b3fc
3 changed files with 8 additions and 2 deletions

View file

@ -10,11 +10,14 @@ class MidiConverter {
constructor() {
var pythonPath = settings.read('midi').filter(x=>x.includes('path=')).map(x=>x.split('=')[1])[0]
this.py = new PythonShell('python/midi.py', Object.assign({
args: [
settings.read('debug') ? 'debug' : '',
...settings.read('midi')
]
],
pythonPath
}, pythonOptions))
}