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

Method getModule

src/Base/TypePyImp.cpp:262–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262Py::String TypePy::getModule() const
263{
264 std::string module(getBaseTypePtr()->getName());
265 std::string::size_type pos = module.find_first_of("::");
266
267 if (pos != std::string::npos) {
268 module = std::string(module, 0, pos);
269 }
270 else {
271 module.clear();
272 }
273
274 return {module};
275}
276
277PyObject* TypePy::getCustomAttributes(const char* /*attr*/) const
278{

Callers

nothing calls this directly

Calls 2

getNameMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected