mirror of https://github.com/embarklabs/embark.git
fallback to shelljs if pwd is empty (windows issue)
This commit is contained in:
parent
0b7a33f835
commit
4b0925d425
|
@ -32,7 +32,7 @@ class SolcW {
|
||||||
if (err) {
|
if (err) {
|
||||||
return done(err);
|
return done(err);
|
||||||
}
|
}
|
||||||
let requirePath = utils.joinPath(process.env.PWD, location);
|
let requirePath = utils.joinPath(utils.pwd(), location);
|
||||||
solcProcess.send({action: 'loadCompiler', solcLocation: requirePath});
|
solcProcess.send({action: 'loadCompiler', solcLocation: requirePath});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -123,6 +123,10 @@ function proposeAlternative(word, _dictionary, _exceptions) {
|
||||||
return propose(word, dictionary, {threshold: 0.3});
|
return propose(word, dictionary, {threshold: 0.3});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function pwd() {
|
||||||
|
return process.env.PWD || shelljs.pwd();
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
joinPath: joinPath,
|
joinPath: joinPath,
|
||||||
filesMatchingPattern: filesMatchingPattern,
|
filesMatchingPattern: filesMatchingPattern,
|
||||||
|
@ -138,5 +142,6 @@ module.exports = {
|
||||||
exit: exit,
|
exit: exit,
|
||||||
downloadFile: downloadFile,
|
downloadFile: downloadFile,
|
||||||
extractTar: extractTar,
|
extractTar: extractTar,
|
||||||
proposeAlternative: proposeAlternative
|
proposeAlternative: proposeAlternative,
|
||||||
|
pwd: pwd
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue