Commit 7e44ab5d authored by Andrew Cohen's avatar Andrew Cohen

built leverjs uses external binaries -- back to spawn for child procs

parent aa027101
......@@ -308,13 +308,15 @@ function cmdLoop()
function launchTracker()
{
const path=require('path');
const spawn = require('child_process').execFile;
const spawn = require('child_process').spawn;
const dbAlgorithms=require('./dbAlgorithms.js');
var tracker;
var trackerPath;
global.trackerChild=null;
debugger;
// used to detect windows vs unix for process spawn command line
var isWin = /^win/.test(process.platform);
......@@ -349,7 +351,7 @@ function launchTracker()
function launchMatlab()
{
const path=require('path');
const spawn = require('child_process').execFile;
const spawn = require('child_process').spawn;
const dbAlgorithms=require('./dbAlgorithms.js');
var matlab;
var matlabPath;
......
......@@ -135,15 +135,15 @@ function getBinOrPrebuilt(file)
// if file exists in ./bin use that, otherwise use ./prebuilt/file
const fs=require('fs');
const path=require('path');
var fname=path.join(__dirname,'..','bin',file);
var fname=path.join(process.cwd(),'bin',file);
if (fs.existsSync(fname)) {
return fname;
}
fname=path.join(__dirname,'..','prebuilt',file);
fname=path.join(process.cwd(),'prebuilt',file);
return fname;
} // getBinOrPrebuilt
......
......@@ -17,7 +17,7 @@ function importFolder()
{
const path=require('path');
const spawn = require('child_process').execFile;
const spawn = require('child_process').spawn;
var importPath;
const dbAlgorithms=require('./dbAlgorithms.js');
......
......@@ -188,7 +188,7 @@ function removeAllFromQ()
function addFileToProcess(leverCommand,nSlot)
{
const path=require('path');
const spawn = require('child_process').execFile;
const spawn = require('child_process').spawn;
var isWin = /^win/.test(process.platform);
var leverFile=leverCommand.leverFile;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment