py3: ported module init to python3

This commit is contained in:
wmayer
2016-01-23 15:30:29 +01:00
parent 915a1b18c4
commit 76b3397762
11 changed files with 92 additions and 37 deletions

View File

@@ -18,6 +18,7 @@
#include <CXX/Objects.hxx>
#include <Base/Console.h>
#include <Base/PyObjectBase.h>
#include "ImagePlane.h"
@@ -43,12 +44,12 @@ PyObject* initModule()
} // namespace Image
/* Python entry */
PyMODINIT_FUNC initImage()
PyMOD_INIT_FUNC(Image)
{
(void) Image::initModule();
PyObject* mod = Image::initModule();
Base::Console().Log("Loading Image module... done\n");
Image::ImagePlane::init();
return;
PyMOD_Return(mod);
}