py3: ported Import to python3

This commit is contained in:
wmayer
2016-01-23 17:22:22 +01:00
committed by looooo
parent 05544f395c
commit 944d62efc9
2 changed files with 11 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ namespace Import {
extern PyObject* initModule();
}
PyMODINIT_FUNC initImport()
PyMOD_INIT_FUNC(Import)
{
PyObject* importModule = Import::initModule();
@@ -45,7 +45,7 @@ PyMODINIT_FUNC initImport()
}
catch(const Base::Exception& e) {
PyErr_SetString(PyExc_ImportError, e.what());
return;
PyMOD_Return(0);
}
// add mesh elements
@@ -55,4 +55,5 @@ PyMODINIT_FUNC initImport()
//Import::StepShape ::init();
Base::Console().Log("Loading Import module... done\n");
PyMOD_Return(importModule);
}