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

Method getLibraryRoot

src/Mod/Material/App/ModelPyImp.cpp:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62Py::String ModelPy::getLibraryRoot() const
63{
64 auto library = getModelPtr()->getLibrary();
65 if (!library->isLocal()) {
66 return "";
67 }
68 return Py::String(library ? library->getDirectoryPath().toStdString() : "");
69}
70
71Py::Object ModelPy::getLibraryIcon() const
72{

Callers

nothing calls this directly

Calls 5

isLocalMethod · 0.80
toStdStringMethod · 0.80
getDirectoryPathMethod · 0.80
StringClass · 0.50
getLibraryMethod · 0.45

Tested by

no test coverage detected