summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysalide/helpers.c')
-rw-r--r--plugins/pychrysalide/helpers.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/pychrysalide/helpers.c b/plugins/pychrysalide/helpers.c
index ce3d0f4..9237aba 100644
--- a/plugins/pychrysalide/helpers.c
+++ b/plugins/pychrysalide/helpers.c
@@ -31,6 +31,9 @@
#include <string.h>
+#include <common/extstr.h>
+
+
#include "access.h"
#include "constval.h"
@@ -692,7 +695,7 @@ bool _register_class_for_pygobject(PyObject *dict, GType gtype, PyTypeObject *ty
* Création d'un dictionnaire complet pour la simulation d'un "import *".
*/
- if (result)
+ if (result && startswith(type->tp_name, "pychrysalide."))
result = include_python_type_into_features(dict, type);
return result;