diff --git a/src/helper.js b/src/helper.js index 111b99a0..565df801 100644 --- a/src/helper.js +++ b/src/helper.js @@ -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"); };