| 533 | |
| 534 | |
| 535 | int NGS_PythonShell (ClientData clientData, |
| 536 | Tcl_Interp * interp, |
| 537 | int argc, const char *argv[]) |
| 538 | { |
| 539 | if(!netgen::netgen_executable_started) { |
| 540 | Ng_Tcl_SetResult (interp, (char*)"This feature is not available when running from Python", NG_TCL_STATIC); |
| 541 | return NG_TCL_ERROR; |
| 542 | } |
| 543 | #ifdef NGS_PYTHON |
| 544 | SpawnPython(); |
| 545 | return NG_TCL_OK; |
| 546 | #else |
| 547 | cerr << "Sorry, you have to compile ngsolve with Python" << endl; |
| 548 | return NG_TCL_ERROR; |
| 549 | #endif |
| 550 | } |
| 551 | |
| 552 | |
| 553 |
nothing calls this directly
no test coverage detected