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);
}
// returns embarks root directory
function embarkPath(fileOrDir) {
return utils.joinPath(__dirname, '/../../', fileOrDir);
function embarkPath() {
return utils.joinPath(__dirname, '/../../', ...arguments);
}
function dappPath() {