Allow --settings cli arg to be an absolute path

fix/settings-file-arg-absolute
Marcel Klehr 2014-03-30 14:32:44 +02:00
parent de3a60ee2a
commit 440e8049b0
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ 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));
settingsFilename = path.resolve(exports.root, settingsFilename);
var settingsStr;
try{