update sample to use environment variable for path to RED.

This commit is contained in:
Dave C-J 2013-10-28 09:59:36 +00:00
parent c193779f67
commit deef63334f
1 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@
// Sample Node-RED node file
// Require main module
var RED = require("../../red/red");
var RED = require(process.env.NODE_RED_HOME+"/red/red");
// The main node definition - most things happen in here
function SampleNode(n) {