PythonAdapter.InterpreterSessionScope

Syntax

PythonAdapter.InterpreterSessionScope

Data Type

PythonInterpreterSessionScopes

Use the following constants with this data type:

  • PythonInterpreterSessionScope_Global –(Value: 0x3) Specifies that interpreter session created per TestStand instance should be used to execute the code module.
  • PythonInterpreterSessionScope_ObjectReference –(Value: 0x0) Specifies that the interpreter session to use as specified by object reference. This value applies only to step instance.
  • PythonInterpreterSessionScope_PerExecution –(Value: 0x2) Specifies that interpreter session created per TestStand Execution should be used to execute the code module.
  • PythonInterpreterSessionScope_PerThread –(Value: 0x1) Specifies that interpreter session created per TestStand Thread should be used to execute the code module.

Purpose

Specifies the Python interpreter session to use for executing Python modules.

Remarks

Use this setting for a Python step only when you set the Python interpreter session for the step to use the Adapter settings.