Allow relative '--home' path
This commit is contained in:
parent
f07150ea54
commit
0944456ade
|
@ -1,8 +1,10 @@
|
||||||
|
var path = require("path");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
HOME: (process.env.HOME || process.env.USERPROFILE) + "/.shout",
|
HOME: (process.env.HOME || process.env.USERPROFILE) + "/.shout",
|
||||||
getConfig: getConfig
|
getConfig: getConfig
|
||||||
};
|
};
|
||||||
|
|
||||||
function getConfig() {
|
function getConfig() {
|
||||||
return require(this.HOME + "/config.js");
|
return require(path.resolve(this.HOME) + "/config");
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue