Use process.env.NODE_RED_HOME to locate modules

This commit is contained in:
Nicholas O'Leary
2013-10-30 21:34:54 +00:00
parent 6a0d248f5a
commit 6f7487f393
11 changed files with 15 additions and 15 deletions

View File

@@ -14,9 +14,9 @@
* limitations under the License.
**/
var RED = require("../../red/red");
var RED = require(process.env.NODE_RED_HOME+"/red/red");
var growl = require('growl');
var imagefile = __dirname+"/../../public/mqtt-node-red.png";
var imagefile = process.env.NODE_RED_HOME+"/public/mqtt-node-red.png";
function NotifyNode(n) {
RED.nodes.createNode(this,n);