Work on copy config if needed.

This commit is contained in:
Scott Idem
2022-05-06 16:08:54 -04:00
parent 2a56129336
commit 4bc1e8c4c9

View File

@@ -28,7 +28,8 @@ exports.load_config = function () {
// let config = null;
let config_directory = null;
let default_config_path = path.join(process.cwd(),'config.json.default');
// let default_config_path = path.join(process.cwd(),'config.json.default');
let default_config_path = 'config.json.default';
console.log(default_config_path);
let config_path = null;
@@ -78,8 +79,7 @@ exports.load_config = function () {
//console.log('Config file (config.json) not found under '+config_directory+'. Using config in CWD.');
//config = JSON.parse(fs.readFileSync('config.json'));
} else {
console.log('Unknown');
//close();
console.log('Can not find a config file.');
return false;
}