From: Gunnar Beutner Date: Mon, 2 Apr 2012 11:43:47 +0000 (+0200) Subject: Fixed setting the component search path. X-Git-Tag: v0.0.1~660 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8b83c2d35afda5600ef8f18e27e656ec18fedf8;p=icinga2 Fixed setting the component search path. --- diff --git a/icinga/icingaapplication.cpp b/icinga/icingaapplication.cpp index cdeefa930..f9ac60414 100644 --- a/icinga/icingaapplication.cpp +++ b/icinga/icingaapplication.cpp @@ -27,10 +27,8 @@ int IcingaApplication::Main(const vector& args) return EXIT_FAILURE; } -#ifndef _WIN32 - string componentDirectory = GetExeDirectory() + "../lib/icinga"; + string componentDirectory = GetExeDirectory() + "/../lib/icinga"; AddComponentSearchDir(componentDirectory); -#endif /* _WIN32 */ GetConfigHive()->OnObjectCreated.bind(bind_weak(&IcingaApplication::ConfigObjectCreatedHandler, shared_from_this())); GetConfigHive()->OnObjectRemoved.bind(bind_weak(&IcingaApplication::ConfigObjectRemovedHandler, shared_from_this()));