Assembly: Python;
Namespace: Prognoz.Platform.Interop.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 units for the obtained object using the AddFolderToPythonPath method.
Execute the Invoke method by specifying unit 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/Fore.NET.
Method name | Brief description | |
AddFolderToPythonPath | The AddFolderToPythonPath method adds the specified folder to the folders list to search for Python units. | |
Invoke | The Invoke method executes function in the Python language and returns result of its work. |
See also: