diff options
Diffstat (limited to 'PluginCommandInterfaceDbus')
-rw-r--r-- | PluginCommandInterfaceDbus/src/IAmCommandReceiverShadow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/PluginCommandInterfaceDbus/src/IAmCommandReceiverShadow.cpp b/PluginCommandInterfaceDbus/src/IAmCommandReceiverShadow.cpp index 86ef443..2b411b3 100644 --- a/PluginCommandInterfaceDbus/src/IAmCommandReceiverShadow.cpp +++ b/PluginCommandInterfaceDbus/src/IAmCommandReceiverShadow.cpp @@ -344,10 +344,12 @@ void IAmCommandReceiverShadow::sendIntrospection(DBusConnection *conn, DBusMessa // create a reply from the message reply = dbus_message_new_method_return(msg); - std::ifstream in("CommandInterface.xml", std::ifstream::in); + std::string fullpath(EXECUTABLE_OUTPUT_PATH); + fullpath.append("/CommandInterface.xml"); + std::ifstream in(fullpath.c_str(), std::ifstream::in); if (!in) { - logError("IAmCommandReceiverShadow::sendIntrospection could not load xml file"); + logError("IAmCommandReceiverShadow::sendIntrospection could not load xml file ",fullpath); throw std::runtime_error("IAmCommandReceiverShadow::sendIntrospection Could not load introspecton XML"); } std::string introspect((std::istreambuf_iterator<char>(in)), std::istreambuf_iterator<char>()); |