midi: add path option
This commit is contained in:
parent
cddddb5bb2
commit
9110a8b3fc
3 changed files with 8 additions and 2 deletions
|
|
@ -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))
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue