summaryrefslogtreecommitdiffstats
path: root/bindings/lang_python_wrapper_bottom.c
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/lang_python_wrapper_bottom.c')
-rw-r--r--bindings/lang_python_wrapper_bottom.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bindings/lang_python_wrapper_bottom.c b/bindings/lang_python_wrapper_bottom.c
index 5f1220c3..82e74ecc 100644
--- a/bindings/lang_python_wrapper_bottom.c
+++ b/bindings/lang_python_wrapper_bottom.c
@@ -1,12 +1,15 @@
PyMODINIT_FUNC
init_lasso(void)
{
- PyObject *m;
+ PyObject *m, *d;
if (PyType_Ready(&PyGObjectPtrType) < 0)
return;
m = Py_InitModule3("_lasso", lasso_methods, "_lasso wrapper module");
+ d = PyModule_GetDict(m);
+ register_constants(d);
+
lasso_init();
lasso_wrapper_key = g_quark_from_static_string("PyLasso::wrapper");