make cc happy; use join path

This commit is contained in:
Iuri Matias 2017-03-01 21:15:02 -05:00
parent 09fbd66417
commit d4f7eca2c5
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
var utils = require('../core/utils.js');
var solcProcess;
var compilerLoaded = false;
@ -6,7 +7,7 @@ var SolcW = function() {
SolcW.prototype.load_compiler = function(done) {
if (compilerLoaded) { done(); }
solcProcess = require('child_process').fork(__dirname + '/solcP.js');
solcProcess = require('child_process').fork(utils.joinPath(__dirname, '/solcP.js'));
solcProcess.once('message', function(msg) {
if (msg.result !== 'loadedCompiler') {
return;