summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-06-09 16:54:52 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-06-09 16:54:52 +0000
commit9078ad41fd0606135c477eb46457fa521097420d (patch)
tree04806a1410f07404521615ff70eab48654e84d20 /bindings
parent05b537876bd1ec9fc5f34312835de4ae04e7de68 (diff)
downloadlasso-9078ad41fd0606135c477eb46457fa521097420d.tar.gz
lasso-9078ad41fd0606135c477eb46457fa521097420d.tar.xz
lasso-9078ad41fd0606135c477eb46457fa521097420d.zip
Binding python: call lasso_init() first in init_lasso()
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/lang.py2
-rw-r--r--bindings/python/wrapper_bottom.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/bindings/python/lang.py b/bindings/python/lang.py
index c3b1a53f..efda521c 100644
--- a/bindings/python/lang.py
+++ b/bindings/python/lang.py
@@ -115,8 +115,6 @@ class Binding:
import _lasso
-_lasso.init()
-
def cptrToPy(cptr):
if cptr is None:
return None
diff --git a/bindings/python/wrapper_bottom.c b/bindings/python/wrapper_bottom.c
index a899188d..730c21b8 100644
--- a/bindings/python/wrapper_bottom.c
+++ b/bindings/python/wrapper_bottom.c
@@ -14,6 +14,7 @@ init_lasso(void)
Py_INCREF(&PyGObjectPtrType);
PyModule_AddObject(m, "PyGObjectPtr", (PyObject *)&PyGObjectPtrType);
+ lasso_init();
lasso_log_set_handler(G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION | G_LOG_LEVEL_MASK,
lasso_python_log, NULL);
}