Allow relative '--home' path

This commit is contained in:
Mattias Erming 2014-10-04 16:22:23 -07:00
parent f07150ea54
commit 0944456ade
1 changed files with 3 additions and 1 deletions

View File

@ -1,8 +1,10 @@
var path = require("path");
module.exports = {
HOME: (process.env.HOME || process.env.USERPROFILE) + "/.shout",
getConfig: getConfig
};
function getConfig() {
return require(this.HOME + "/config.js");
return require(path.resolve(this.HOME) + "/config");
};