Skip to content

Commit 09ec39f

Browse files
authored
Merge pull request #185 from meastman/configpath-configurable
Allow ConfigPath to be configured like UserPath
2 parents abd1906 + 7a7d24a commit 09ec39f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)