summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/pglist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/pglist.c b/src/plugins/pglist.c
index b7c8d1d..85f2b99 100644
--- a/src/plugins/pglist.c
+++ b/src/plugins/pglist.c
@@ -75,7 +75,11 @@ bool init_all_plugins(bool load)
{
g_rw_lock_init(&_pg_lock);
+#ifndef DISCARD_LOCAL
browse_directory_for_plugins(PACKAGE_SOURCE_DIR "/plugins");
+#else
+ browse_directory_for_plugins(PLUGINS_LIB_DIR);
+#endif
if (load)
load_remaning_plugins();