allows for multiple user logins along with live config file reading

This commit is contained in:
Jon Chiappetta 2012-04-13 17:58:14 -04:00
parent cba2c1f83a
commit d02643575e
2 changed files with 11 additions and 2 deletions

View file

@ -103,6 +103,8 @@ exports.abiwordAvailable = function()
}
}
exports.readConfig = function()
{
// Discover where the settings file lives
var settingsFilename = argv.settings || "settings.json";
if (settingsFilename.charAt(0) != '/') {
@ -149,3 +151,6 @@ for(var i in settings)
console.warn("This setting doesn't exist or it was removed");
}
}
}
exports.readConfig();