summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-03-23 09:01:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-03-23 09:01:30 (GMT)
commitfd0df8f884336fc69bd0938453f9712c166f08c8 (patch)
treef24313aa72a50d41b8076cf6b257129530bf562e /src/plugins
parent03d5e6abfce49d4a18bbf70cbbaa3be8c58bf5b4 (diff)
Removed references to local sources if required.
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();