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

Function ExecutePython

tests/src/Mod/Part/App/PartTestHelpers.cpp:73–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72
73void ExecutePython(const std::vector<std::string>& python)
74{
75 Base::InterpreterSingleton is = Base::InterpreterSingleton();
76
77 for (auto const& line : python) {
78 is.runInteractiveString(line.c_str());
79 }
80}
81
82
83void rectangle(double height, double width, const char* name)

Callers 1

rectangleFunction · 0.85

Calls 3

InterpreterSingletonFunction · 0.85
runInteractiveStringMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected