From a8b83c2d35afda5600ef8f18e27e656ec18fedf8 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 2 Apr 2012 13:43:47 +0200 Subject: [PATCH] Fixed setting the component search path. --- icinga/icingaapplication.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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())); -- 2.50.1