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 = null;
let config_directory = 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); console.log(default_config_path);
let config_path = null; 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.'); //console.log('Config file (config.json) not found under '+config_directory+'. Using config in CWD.');
//config = JSON.parse(fs.readFileSync('config.json')); //config = JSON.parse(fs.readFileSync('config.json'));
} else { } else {
console.log('Unknown'); console.log('Can not find a config file.');
//close();
return false; return false;
} }