#include <SalomeApp_PyInterp.h>
Public Member Functions | |
virtual | ~SalomeApp_PyInterp () |
Destructor. More... | |
virtual void | initStudy () |
Called when study is initialized. More... | |
virtual void | closeContext () |
Called when study is closed. More... | |
Protected Member Functions | |
SalomeApp_PyInterp () | |
Constructor. More... | |
virtual bool | initContext () |
virtual int | beforeRun () |
Called before each Python command running. More... | |
Private Attributes | |
bool | myFirstRun |
bool | myFirstInitStudy |
Friends | |
class | SalomeApp_Application |
|
virtual |
|
protected |
|
protectedvirtual |
References myFirstInitStudy, and myFirstRun.
|
virtual |
References myFirstInitStudy.
|
protectedvirtual |
Initialize context dictionaries. GIL is held already. The code executed in an embedded interpreter is expected to be run at the module level, in which case local and global context have to be the same dictionary. See: http://stackoverflow.com/questions/12265756/c-python-running-python-code-within-a-context for an explanation.
|
virtual |
References myFirstInitStudy.
|
friend |
|
private |
|
private |