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 5150a78af4
commit 2d31a10d01
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## 0.47.2
- bug fixes
- midi: `path` option not applied to launcher's `list` contextual action
## 0.47.1
- bug fixes

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)
})