IPythonUtils

Assembly: Python;

Description

The IPythonUtils interface is used to execute functions on the Python language.

Inheritance Hierarchy

IPythonUtils

Comments

To execute functions in the Python language, execute the following operations:

  1. Create an instance of the PythonUtils class.

  2. Add the folders that contain Python modules for the obtained object using the AddFolderToPythonPath method.

  3. 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.

Methods

  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:

Python Assembly Interfaces