Fixed setting the component search path.

This commit is contained in:
Gunnar Beutner 2012-04-02 13:43:47 +02:00
parent 8c6d3cd5b7
commit a8b83c2d35
1 changed files with 1 additions and 3 deletions

View File

@ -27,10 +27,8 @@ int IcingaApplication::Main(const vector<string>& args)
return EXIT_FAILURE; return EXIT_FAILURE;
} }
#ifndef _WIN32 string componentDirectory = GetExeDirectory() + "/../lib/icinga";
string componentDirectory = GetExeDirectory() + "../lib/icinga";
AddComponentSearchDir(componentDirectory); AddComponentSearchDir(componentDirectory);
#endif /* _WIN32 */
GetConfigHive()->OnObjectCreated.bind(bind_weak(&IcingaApplication::ConfigObjectCreatedHandler, shared_from_this())); GetConfigHive()->OnObjectCreated.bind(bind_weak(&IcingaApplication::ConfigObjectCreatedHandler, shared_from_this()));
GetConfigHive()->OnObjectRemoved.bind(bind_weak(&IcingaApplication::ConfigObjectRemovedHandler, shared_from_this())); GetConfigHive()->OnObjectRemoved.bind(bind_weak(&IcingaApplication::ConfigObjectRemovedHandler, shared_from_this()));