* python/libvir.c: call the initialize entry point

* src/libvirt_sym.version: add initialize entry point
* src/libvirt.c: make sure we always initialize the lib
* python/tests/*.py: start updating exemple for exception
  handling as pointed by Jim Meyering
Daniel
This commit is contained in:
Daniel Veillard
2006-03-28 14:41:04 +00:00
parent 7743c7a7b1
commit 538686f9c0
7 changed files with 41 additions and 8 deletions

View File

@@ -269,6 +269,8 @@ initlibvirtmod(void)
if (initialized != 0)
return;
virInitialize();
/* intialize the python extension module */
Py_InitModule((char *) "libvirtmod", libvirtMethods);