make fs.embarkPath more flexible

This commit is contained in:
Michael Bradley, Jr 2018-08-16 15:52:33 -05:00
parent 51ac4ddee8
commit c60d26e258
1 changed files with 2 additions and 3 deletions

View File

@ -77,9 +77,8 @@ function removeSync() {
return fs.removeSync.apply(fs.removeSync, arguments); return fs.removeSync.apply(fs.removeSync, arguments);
} }
// returns embarks root directory function embarkPath() {
function embarkPath(fileOrDir) { return utils.joinPath(__dirname, '/../../', ...arguments);
return utils.joinPath(__dirname, '/../../', fileOrDir);
} }
function dappPath() { function dappPath() {