Copy version numbers of libraries in About dialog
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user