MCPcopy Create free account
hub / github.com/Kitware/ParaView / executeScript

Method executeScript

Qt/Python/pqPythonShell.cxx:349–362  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

347
348//-----------------------------------------------------------------------------
349void pqPythonShell::executeScript(const QString& script)
350{
351
352 QString command = script;
353 command.replace("\r\n", "\n");
354 command.replace("\r", "\n");
355
356 this->Internals->begin();
357 this->Internals->interpreter()->RunStringWithConsoleLocals(command.toUtf8().data());
358 this->Internals->end();
359
360 CLEAR_UNDO_STACK();
361 this->prompt();
362}
363
364//-----------------------------------------------------------------------------
365void pqPythonShell::pushScript(const QString& script)

Callers 1

runScriptMethod · 0.95

Calls 6

promptMethod · 0.95
CLEAR_UNDO_STACKFunction · 0.85
interpreterMethod · 0.80
beginMethod · 0.45
dataMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected