MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / exec_script_str

Method exec_script_str

pySPlisHSPlasH/Embedded.cpp:203–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void Embedded::exec_script_str(const std::string &str)
204{
205 try
206 {
207 py::exec(py::str(str), py::globals(), m_mainScope);
208 }
209 catch (py::error_already_set const& pythonErr) { std::cout << pythonErr.what(); }
210}
211
212void Embedded::exec_fct(const std::string &moduleName, const std::string& fctName)
213{

Callers

nothing calls this directly

Calls 4

execFunction · 0.85
strClass · 0.85
globalsFunction · 0.85
whatMethod · 0.45

Tested by

no test coverage detected