From 0cf0f628cd8bd8fac57d25a0f481f0bf636d8974 Mon Sep 17 00:00:00 2001 From: Toby Ealden Date: Fri, 21 Mar 2014 12:42:30 +0000 Subject: [PATCH] Initialise WRT_HOME environment variable. This variable is used by the widget manager to determine the widget storage location. Setting the variable here de-couples the webinos-widget module from webinos-utitlities. --- webinos_pzp.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webinos_pzp.js b/webinos_pzp.js index 76f9613..fea1521 100755 --- a/webinos_pzp.js +++ b/webinos_pzp.js @@ -166,6 +166,8 @@ function initializePzp (config) { logger = wutil.webinosLogging(__filename); logger.setConfig(config); PzpSession.setInputConfig(config); + // Set up path for widget storage. + process.env["WRT_HOME"] = path.join(wutil.webinosPath.webinosPath(),"wrt/widgetStore"); startPzp(); }