Allow relative '--home' path
This commit is contained in:
parent
f07150ea54
commit
0944456ade
|
@ -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");
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue