Work on copy config if needed.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user