py3: path: some fixes to make path py3-compileable

This commit is contained in:
looooo
2017-05-05 15:30:13 +02:00
committed by wmayer
parent 2a9cfd7eee
commit 3299c363ab
4 changed files with 30 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ PyMOD_INIT_FUNC(Path)
}
catch(const Base::Exception& e) {
PyErr_SetString(PyExc_ImportError, e.what());
return;
PyMOD_Return(NULL);
}
PyObject* pathModule = Path::initModule();