Skip to content

Commit 47b2281

Browse files
committed
Merge branch 'master' of github.com:OpenZWave/node-openzwave-shared
2 parents 0df5ef6 + 09ec39f commit 47b2281

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/ozwpaths.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function doScript(script, suppressException) {
2929
} catch(e) {
3030
//console.log('---> ' + e.toString());
3131
if (!suppressException) throw e;
32+
if (e.stdout) return e.stdout.toString();
3233
}
3334
}
3435

src/openzwave.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace OZW {
2828
CommandMap* ctrlCmdNames;
2929

3030
std::string ozw_userpath;
31-
const std::string ozw_config_path = stringify( OPENZWAVE_ETC );
31+
std::string ozw_config_path = stringify( OPENZWAVE_ETC );
3232

3333
// ===================================================================
3434
extern "C" void init(Handle<Object> target, Handle<Object> module) {
@@ -222,6 +222,8 @@ namespace OZW {
222222
// scan for OpenZWave options.xml in the nodeJS module's '/config' subdirectory
223223
if (keyname == "UserPath") {
224224
ozw_userpath.assign(argvalstr);
225+
} else if (keyname == "ConfigPath") {
226+
ozw_config_path.assign(argvalstr);
225227
} else {
226228
option_overrides += " --" + keyname + " " + argvalstr;
227229
}

0 commit comments

Comments
 (0)