sensord: use LIBDIR macro for finding library path
[platform/core/system/sensord.git] / src / shared / sensor_plugin_loader.cpp
index 5a096a9..d26a773 100755 (executable)
@@ -39,7 +39,7 @@ using std::unordered_set;
 #define SENSOR_ELEMENT "SENSOR"
 
 #define PLUGINS_CONFIG_PATH "/usr/etc/sensor_plugins.xml"
-#define PLUGINS_DIR_PATH "/usr/lib/sensord"
+#define PLUGINS_DIR_PATH "/sensord"
 
 #define SENSOR_INDEX_SHIFT 16
 
@@ -146,7 +146,7 @@ bool sensor_plugin_loader::load_plugins(void)
        vector<string> unique_hal_paths, unique_sensor_paths;
 
        get_paths_from_config(string(PLUGINS_CONFIG_PATH), hal_paths, sensor_paths);
-       get_paths_from_dir(string(PLUGINS_DIR_PATH), hal_paths, sensor_paths);
+       get_paths_from_dir(string(LIBDIR) + string(PLUGINS_DIR_PATH), hal_paths, sensor_paths);
 
        //remove duplicates while keeping the original ordering => unique_*_paths
        unordered_set<string> s;