midi: pythonPath for launcher's contextual midi list action

This commit is contained in:
jean-emmanuel 2019-07-12 00:10:43 +02:00
parent 8bbf9d5fd4
commit 5256fa1176
2 changed files with 8 additions and 1 deletions

View file

@ -74,7 +74,9 @@ class MidiConverter {
static list() {
PythonShell.run('python/list.py', pythonOptions, function(err, results) {
var pythonPath = settings.read('midi').filter(x=>x.includes('path=')).map(x=>x.split('=')[1])[0]
PythonShell.run('python/list.py', Object.assign({pythonPath}, pythonOptions), function(err, results) {
if (err) console.error(err)
MidiConverter.parseIpc(results)
})