IPythonUtils.AddFolderToPythonPath

Syntax

AddFolderToPythonPath(FolderName: String);

Parameters

FolderName. Path to the folder with Python modules.

Description

The AddFolderToPythonPath method adds the specified folder to the folders list to search for Python modules.

Comments

By default, modules are searched for in the current folder, from which the platform has been started.

The AddFolderToPythonPath method enables the user to add any folder to the list, to which the user has access. To add several folders, execute the method several times with different values of the FolderName parameter. If the specified folders have modules with equal names and functions with equal names, the method is executed using the module or the function from the folder that has been last added by means of the AddFolderToPythonPath method.

Example

The example of use is given in description of the IPythonUtils.Invoke method.

See also:

IPythonUtils