MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/xstudio / eval_locals

Method eval_locals

src/embedded_python/src/embedded_python.cpp:237–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237nlohmann::json EmbeddedPython::eval_locals(const std::string &pystring) const {
238 py::object pylocal;
239 py::exec(pystring, py::globals(), pylocal);
240 return pylocal;
241}
242
243nlohmann::json
244EmbeddedPython::eval_locals(const std::string &pystring, const nlohmann::json &locals) const {

Callers 2

TESTFunction · 0.80
main_loopMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64