From 7ae023663e3a6b41a2e2d495e0744f16db44195c Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 7 Mar 2017 12:25:22 +0100 Subject: [PATCH] midi: fix script path --- app/main/midi.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/main/midi.js b/app/main/midi.js index 6dd64a35..a7eaf78f 100644 --- a/app/main/midi.js +++ b/app/main/midi.js @@ -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') ]