changeset 24:392878bea53d

PyType_Ready call: fill type dictionary (without this, we crash on e.g. tab completion in ipython)
author Chris Cannam
date Wed, 26 Nov 2014 09:32:50 +0000
parents 9dc444c79aa5
children 5379af6bef00
files vampyhost.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vampyhost.cpp	Tue Nov 25 17:39:27 2014 +0000
+++ b/vampyhost.cpp	Wed Nov 26 09:32:50 2014 +0000
@@ -630,6 +630,9 @@
     if (PyType_Ready(&RealTime_Type) < 0)
 	return;
 
+    if (PyType_Ready(&Plugin_Type) < 0)
+	return;
+
     /* Create the module and add the functions */
     m = Py_InitModule3("vampyhost", vampyhost_methods, module_doc);
     if (!m) return;