summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-02-23 23:34:25 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-02-23 23:36:46 (GMT)
commita79d209385fca4e74a6a85b2386be71ec23057bb (patch)
treea2f302fde6560c8e220abd738e50a455be936c88 /plugins/pychrysalide/analysis
parentdc3be188b42a90404d0655c250e6697f5a55b862 (diff)
Prepare mechanisms to load and store data types.
Diffstat (limited to 'plugins/pychrysalide/analysis')
-rw-r--r--plugins/pychrysalide/analysis/type.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/pychrysalide/analysis/type.c b/plugins/pychrysalide/analysis/type.c
index d2801bf..1e4ec06 100644
--- a/plugins/pychrysalide/analysis/type.c
+++ b/plugins/pychrysalide/analysis/type.c
@@ -38,6 +38,7 @@
#include "constants.h"
+#include "storage/serialize.h"
#include "../access.h"
#include "../helpers.h"
@@ -1077,6 +1078,9 @@ bool ensure_python_data_type_is_registered(void)
if (!PyType_HasFeature(type, Py_TPFLAGS_READY))
{
+ if (!ensure_python_serializable_object_is_registered())
+ return false;
+
module = get_access_to_python_module("pychrysalide.analysis");
dict = PyModule_GetDict(module);