1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Resort to NODE_RED_HOME if User HOME not found

Fixes #575
This commit is contained in:
Nick O'Leary 2015-03-04 21:47:38 +00:00
parent e013afb053
commit 444a897410

View File

@ -151,7 +151,7 @@ var localfilesystem = {
if (fs.existsSync(fspath.join(process.env.NODE_RED_HOME,".config.json"))) {
settings.userDir = process.env.NODE_RED_HOME;
} else {
settings.userDir = fspath.join(process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE,".node-red");
settings.userDir = fspath.join(process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE || process.env.NODE_RED_HOME,".node-red");
promises.push(promiseDir(settings.userDir));
}
}