+ expose OCC version number to Python

This commit is contained in:
wmayer 2016-07-14 14:11:54 +02:00
parent c5b501b9d3
commit 161f418824

View File

@ -15,6 +15,7 @@
# include <Interface_Static.hxx>
# include <IGESControl_Controller.hxx>
# include <STEPControl_Controller.hxx>
# include <Standard_Version.hxx>
# include <OSD.hxx>
# include <sstream>
#endif
@ -124,6 +125,9 @@ PyMODINIT_FUNC initPart()
PyObject* partModule = Part::initModule();
Base::Console().Log("Loading Part module... done\n");
Py::Object module(partModule);
module.setAttr("OCC_VERSION", Py::String(OCC_VERSION_STRING_EXT));
// Python exceptions
//
PyObject* OCCError = 0;