diff options
Diffstat (limited to 'bindings/lang_python_wrapper_bottom.c')
| -rw-r--r-- | bindings/lang_python_wrapper_bottom.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bindings/lang_python_wrapper_bottom.c b/bindings/lang_python_wrapper_bottom.c index 737ec02e..5f1220c3 100644 --- a/bindings/lang_python_wrapper_bottom.c +++ b/bindings/lang_python_wrapper_bottom.c @@ -1,6 +1,8 @@ PyMODINIT_FUNC init_lasso(void) { + PyObject *m; + if (PyType_Ready(&PyGObjectPtrType) < 0) return; @@ -10,7 +12,7 @@ init_lasso(void) lasso_wrapper_key = g_quark_from_static_string("PyLasso::wrapper"); Py_INCREF(&PyGObjectPtrType); - PyModule_AddObject(m, "PyGobjectPtr", (PyObject *)&PyGobjectPtrType); + PyModule_AddObject(m, "PyGObjectPtr", (PyObject *)&PyGObjectPtrType); } |
