MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / PyMOD_INIT_FUNC

Function PyMOD_INIT_FUNC

src/Mod/MeshPart/App/AppMeshPart.cpp:37–50  ·  view source on GitHub ↗

Python entry */

Source from the content-addressed store, hash-verified

35
36/* Python entry */
37PyMOD_INIT_FUNC(MeshPart)
38{
39 // load dependent module
40 try {
41 Base::Interpreter().loadModule("Part");
42 }
43 catch (const Base::Exception& e) {
44 PyErr_SetString(PyExc_ImportError, e.what());
45 PyMOD_Return(nullptr);
46 }
47 PyObject* mod = MeshPart::initModule();
48 Base::Console().log("Loading MeshPart module… done\n");
49 PyMOD_Return(mod);
50}

Callers

nothing calls this directly

Calls 4

loadModuleMethod · 0.80
initModuleFunction · 0.70
whatMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected