Assembly: Python;
The IPythonUtils interface is used to execute functions on the Python language.
IPythonUtils
To execute functions in the Python language, execute the following operations:
Create an instance of the PythonUtils class.
Add the folders that contain Python modules for the obtained object using the AddFolderToPythonPath method.
Execute the Invoke method by specifying module and function names, and required parameters. The Invoke method results in the executed Python function. The obtained result can be further used in application code in Fore.
Method name | Brief description | |
AddFolderToPythonPath | The AddFolderToPythonPath method adds the specified folder to the folders list to search for Python modules. | |
Invoke | The Invoke method executes function in the Python language and returns result of its work. | |
InvokeModule | The InvokeModule method executes the function stored in a Python module and returns result of its work. |
See also: