- Index
- »
- py
- »
- func:pyInit
def
func:pyInit
pyInit(py, fn)
Initialize the python session by calling the given func to do any one-time setup of the python session. If pyInit()
has already been called on this session, then the callback is not invoked.
Typically, this func is used in the context of a task since the python session in a task is persistent. This allows to do any one-time pyExec()
or pyDefine()
when the task is first creatd.