py3: make __FreeCADBase__ importable

https://forum.freecadweb.org/viewtopic.php?f=10&t=12534&start=510#p220765
This commit is contained in:
looooo
2018-03-28 22:10:35 +02:00
committed by wmayer
parent cab061ba56
commit 428f2555c2

View File

@@ -271,6 +271,7 @@ Application::Application(std::map<std::string,std::string> &mConfig)
NULL, NULL, NULL, NULL, NULL
};
PyObject* pBaseModule = PyModule_Create(&BaseModuleDef);
_PyImport_FixupBuiltin(pBaseModule, "__FreeCADBase__");
#else
PyObject* pBaseModule = Py_InitModule3("__FreeCADBase__", NULL, Base_doc);
#endif