From d4f7eca2c59baadbcdb0eb927eb6d2a283741b06 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 1 Mar 2017 21:15:02 -0500 Subject: [PATCH] make cc happy; use join path --- lib/contracts/solcW.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/contracts/solcW.js b/lib/contracts/solcW.js index f31f122e..eec22b10 100644 --- a/lib/contracts/solcW.js +++ b/lib/contracts/solcW.js @@ -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;