summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pychrysa/plugin.c2
-rw-r--r--plugins/pychrysa/pychrysa.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/pychrysa/plugin.c b/plugins/pychrysa/plugin.c
index 7d44f10..fad0084 100644
--- a/plugins/pychrysa/plugin.c
+++ b/plugins/pychrysa/plugin.c
@@ -345,8 +345,10 @@ GPluginModule *g_python_plugin_new(const char *modname, const char *filename)
/* Conclusion */
+ /*
if (!g_plugin_module_load(G_PLUGIN_MODULE(result)))
goto gppn_bad_plugin;
+ */
return G_PLUGIN_MODULE(result);
diff --git a/plugins/pychrysa/pychrysa.c b/plugins/pychrysa/pychrysa.c
index e9efc54..4d32ee1 100644
--- a/plugins/pychrysa/pychrysa.c
+++ b/plugins/pychrysa/pychrysa.c
@@ -37,6 +37,7 @@
#include <common/environment.h>
#include <common/extstr.h>
#include <core/core.h>
+#include <plugins/pglist.h>
#include <plugins/plugin-def.h>
#include <plugins/plugin-int.h>
@@ -478,7 +479,7 @@ static bool load_python_plugins(GPluginModule *plugin)
g_plugin_module_log_variadic_message(plugin, LMT_PROCESS,
_("Loaded the Python plugin found in the '<b>%s</b>' directory"),
filename);
- add_plugin_to_main_list(pyplugin);
+ _register_plugin(pyplugin);
}
free(filename);