midi: check if midi should be there without eval
This commit is contained in:
parent
5aed82f366
commit
f4fb4e7d2c
1 changed files with 1 additions and 4 deletions
|
|
@ -23,11 +23,8 @@ var midiBinaries = {
|
|||
}
|
||||
}
|
||||
|
||||
var expectMidiBinaries = false,
|
||||
var expectMidiBinaries = fs.existsSync(path.join(__dirname, '/osc-midi.json')),
|
||||
expectMidiBinariesError = false
|
||||
try {
|
||||
expectMidiBinaries = eval('require("./osc-midi.json")')
|
||||
} catch(e) {}
|
||||
|
||||
var pythonPathOverride
|
||||
if (midiBinaries[process.arch] && midiBinaries[process.arch][process.platform]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue