Merge pull request #2184 from qknight/patch-1
added /abs/path/settings.json handling
This commit is contained in:
commit
4b7562de58
|
@ -177,8 +177,13 @@ exports.abiwordAvailable = function()
|
|||
exports.reloadSettings = function reloadSettings() {
|
||||
// Discover where the settings file lives
|
||||
var settingsFilename = argv.settings || "settings.json";
|
||||
settingsFilename = path.resolve(path.join(exports.root, settingsFilename));
|
||||
|
||||
if (path.resolve(settingsFilename)===settingsFilename) {
|
||||
settingsFilename = path.resolve(settingsFilename);
|
||||
} else {
|
||||
settingsFilename = path.resolve(path.join(exports.root, settingsFilename));
|
||||
}
|
||||
|
||||
var settingsStr;
|
||||
try{
|
||||
//read the settings sync
|
||||
|
|
Loading…
Reference in New Issue