From 373bc2ceecea8ff6c385216632b16d861023e0c3 Mon Sep 17 00:00:00 2001 From: Emily Stark Date: Mon, 16 Dec 2013 22:03:50 -0800 Subject: [PATCH] Allow overwriting ~/.meteorsession file with env var. Useful for tests. --- tools/auth.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/auth.js b/tools/auth.js index 175021a347..a677e73e4c 100644 --- a/tools/auth.js +++ b/tools/auth.js @@ -12,7 +12,8 @@ var url = require('url'); var auth = exports; var getSessionFilePath = function () { - return path.join(process.env.HOME, '.meteorsession'); + return process.env.SESSION_FILE_PATH || + path.join(process.env.HOME, '.meteorsession'); }; var readSessionData = function () {