aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/python/python-plugin-loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/python/python-plugin-loader.c')
-rw-r--r--plugins/python/python-plugin-loader.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/python/python-plugin-loader.c b/plugins/python/python-plugin-loader.c
index 0a03809e97..458440d3af 100644
--- a/plugins/python/python-plugin-loader.c
+++ b/plugins/python/python-plugin-loader.c
@@ -20,9 +20,10 @@
*
*/
+#include <Python.h>
+
#include <sys/types.h>
#include <string.h>
-#include <Python.h>
#include "python-plugin-loader.h"
@@ -93,7 +94,7 @@ epp_invoke(EPlugin *ep, const gchar *name, gpointer data)
if (PyCallable_Check(p->pClass))
pInstance = PyObject_CallObject(p->pClass, NULL);
- pValue = PyObject_CallMethod(pInstance, name, NULL);
+ pValue = PyObject_CallMethod(pInstance, (gchar *) name, NULL);
} else {