Python Variables
(Available from version 7.2 onwards)
Python Parameters for Code
A Python Parameters for Code variable is a Complex Variable, specifying the parameters required for running Python code using the function Execute Python Code From File.
For instructions on how to create a Complex Variable, see here.
Properties
Property |
Input Type |
Description |
---|---|---|
File Path |
Text |
The full path to the Python (.py) file that contains the code to be executed, including the file name, for example: c:/Temp/Pycode.py |
Input Parameter Values |
List of Text |
The values of the input parameters required by the Python code. |
Module Paths |
List of Text |
The full paths of any third-party libraries used in the Python code. |
Names of Input Variables |
List of Text |
The names of the input variables required by the Python code. |
Output Variable |
Text |
The name of the variable in the Python code that represents the output of the code to be returned by the function Execute Python Code From File |
Param Types |
List of Text |
The types of the input variables required by the Python code. For example: int, text. |
The elements in the lists provided for the properties Input Parameter Values, Names of Input Variables, and Param Types must correspond.
The types and values specified for the input parameters will be overridden if they are specified differently within the Python code itself.
Example
For an example, see Execute Python Code From File.
Python Parameters for Method
A Python Parameters for Method variable is a Complex Variable, specifying the parameters required for running a Python method using the function Execute Python Method From File.
For instructions on how to create a Complex Variable, see here.
Properties
Property |
Input Type |
Description |
---|---|---|
Class Name | Text | The name of the class that contains the Python method to be executed. |
File Path |
Text |
The full path to the Python (.py) file that contains the method to be executed, including the file name, for example: c:/Temp/scratch.py |
Method Name | Text | The name of the method to be executed. |
Module Paths |
List of Text |
The full paths of any third-party libraries used in the Python method. |
Param Types |
List of Text |
The types of the input variables required by the Python method. For example: int, text. |
Param Values |
List of Text |
The values of the input parameters required by the Python method. |
The elements in the lists provided for the properties Param Types and Param Values must correspond.
The types and values specified for the input parameters will be overridden if they are specified differently within the Python method itself.
Example
For an example, see Execute Python Method From File.