}
}
-void Config_ModuleReader::loadScript(const std::string& theFileName)
+void Config_ModuleReader::loadScript(const std::string& theFileName, bool theSendErr)
{
/* acquire python thread */
PyGILState_STATE gstate = PyGILState_Ensure();
Py_XDECREF(pvalue);
Py_XDECREF(ptraceback);
}
- Events_InfoMessage("Config_ModuleReader", anErrorMsg).send();
+ if (theSendErr)
+ Events_InfoMessage("Config_ModuleReader", anErrorMsg).send();
}
/* release python thread */