-----------------------------------------------------------------------------
| 347 | |
| 348 | //----------------------------------------------------------------------------- |
| 349 | void 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 | //----------------------------------------------------------------------------- |
| 365 | void pqPythonShell::pushScript(const QString& script) |
no test coverage detected