Supply config path to main.js and oputil.js, rather than specific config file

This commit is contained in:
David Stephens 2017-11-25 22:45:19 +00:00
parent 32557975d9
commit 521e38d7e9
4 changed files with 11 additions and 8 deletions

View file

@ -45,11 +45,12 @@ function printUsageAndSetExitCode(errMsg, exitCode) {
}
function getDefaultConfigPath() {
return './config/config.hjson';
return './config/';
}
function getConfigPath() {
return argv.config ? argv.config : config.getDefaultPath();
const baseConfigPath = argv.config ? argv.config : config.getDefaultPath();
return baseConfigPath + 'config.hjson';
}
function initConfig(cb) {