PythonModule.Execute

Syntax

PythonModule.Execute( sequenceContextParam, arguments)

Purpose

Use this method to call a Python code module directly without using a step, sequence, or execution.

Remarks

When you execute a Python module using this method, you can either evaluate the parameter expressions to determine the argument values or specify the argument values directly using a PythonArguments collection. Create the PythonArguments collection using the PythonModule.NewArguments method.

To use the parameter value expressions, class instance expression and interpreter reference expression, pass a valid SequenceContext object to the sequenceContextParam you want to use to evaluate the expressions.

To pass specific values for the expressions, use the PythonModule.NewArguments method and set the values for each item.

Parameters

sequenceContextParam As SequenceContext

[In] Specifies the SequenceContext object that this method uses to evaluate each of the PythonParameter.ValueExpr expressions in the module parameters. Pass NULL for this parameter if you pass a PythonArguments object to the arguments parameter.

arguments As PythonArguments

[In] Specifies the arguments to pass to the function. Pass NULL for this parameter to pass the values obtained from evaluating each of the PythonParameter.ValueExpr expressions in the module parameters.

See Also

PythonArguments

PythonModule.NewArguments

SequenceContext