Copy version numbers of libraries in About dialog

This commit is contained in:
wmayer
2012-06-14 15:03:21 +02:00
parent 4fcc518eb8
commit f7b200c204
2 changed files with 16 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
#ifndef _PreComp_
# include <Python.h>
# include <Interface_Static.hxx>
# include <sstream>
#endif
#include <Base/Console.h>
@@ -86,6 +87,10 @@ PyDoc_STRVAR(module_part_doc,
extern "C" {
void PartExport initPart()
{
std::stringstream str;
str << OCC_VERSION_MAJOR << "." << OCC_VERSION_MINOR << "." << OCC_VERSION_MAINTENANCE;
App::Application::Config()["OCC_VERSION"] = str.str();
PyObject* partModule = Py_InitModule3("Part", Part_methods, module_part_doc); /* mod name, table ptr */
Base::Console().Log("Loading Part module... done\n");