File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments