diff --git a/src/command-line/index.js b/src/command-line/index.js index 236c390c..dfc41cd1 100644 --- a/src/command-line/index.js +++ b/src/command-line/index.js @@ -13,7 +13,7 @@ program.option(" --home " , "home path"); var argv = program.parseOptions(process.argv); -Helper.setHome(program.home); +Helper.setHome(program.home || process.env.LOUNGE_HOME); if (!fs.existsSync(Helper.CONFIG_PATH)) { fsextra.ensureDirSync(Helper.HOME);