summaryrefslogtreecommitdiff
path: root/plugins/pychrysa/gui
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysa/gui')
-rw-r--r--plugins/pychrysa/gui/module.c4
-rw-r--r--plugins/pychrysa/gui/panels/module.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/plugins/pychrysa/gui/module.c b/plugins/pychrysa/gui/module.c
index 6a55151..192b1e6 100644
--- a/plugins/pychrysa/gui/module.c
+++ b/plugins/pychrysa/gui/module.c
@@ -31,6 +31,7 @@
#include "editem.h"
#include "panels/module.h"
+#include "../access.h"
@@ -84,6 +85,9 @@ bool add_gui_module_to_python_module(PyObject *super)
result &= add_gui_panels_module_to_python_module(module);
+ if (result)
+ register_access_to_python_module("pychrysalide.gui", module);
+
loading_failed:
assert(result);
diff --git a/plugins/pychrysa/gui/panels/module.c b/plugins/pychrysa/gui/panels/module.c
index ea0e234..d5040e3 100644
--- a/plugins/pychrysa/gui/panels/module.c
+++ b/plugins/pychrysa/gui/panels/module.c
@@ -30,6 +30,7 @@
#include "log.h"
#include "panel.h"
+#include "../../access.h"
@@ -82,6 +83,9 @@ bool add_gui_panels_module_to_python_module(PyObject *super)
result &= register_python_panel_item(module);
result &= register_python_log_panel(module);
+ if (result)
+ register_access_to_python_module("pychrysalide.gui.panels", module);
+
loading_failed:
assert(result);