Skip to content

Commit

Permalink
+ expose OCC version number to Python
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jul 14, 2016
1 parent c5b501b commit 161f418
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/Part/App/AppPart.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 161f418

Please sign in to comment.