From 116d437a797fbc0bbd4b01e42d71a1e8ad6f1b79 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Thu, 12 Jun 2014 09:54:51 +0100 Subject: [PATCH] example.js: make require path follow NODE_ENV and NODE_PATH Signed-off-by: Brendan Le Foll --- examples/javascript/example.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/javascript/example.js b/examples/javascript/example.js index 297be71..d343e08 100644 --- a/examples/javascript/example.js +++ b/examples/javascript/example.js @@ -22,7 +22,7 @@ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -var m = require("./maajs") +var m = require("maajs") console.log("maa version: " + m.getVersion()); var x = new m.Gpio(8) -- 2.7.4