]> granicus.if.org Git - icinga2/commitdiff
Fixed setting the component search path.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 2 Apr 2012 11:43:47 +0000 (13:43 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 2 Apr 2012 11:43:47 +0000 (13:43 +0200)
icinga/icingaapplication.cpp

index cdeefa9304f95869d1d7eb8b46174bbaf09ef6eb..f9ac60414ec84a9e26633a9a41fb7cdf8a3404d8 100644 (file)
@@ -27,10 +27,8 @@ int IcingaApplication::Main(const vector<string>& 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()));