AddFolderToPythonPath(FolderName: String);
AddFolderToPythonPath(FolderName: String);
FolderName. Path to the folder with units in the Python language.
The AddFolderToPythonPath method adds the specified folder to the folders list to search for Python units.
By default, units 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 units with equal names and functions with equal names, the method is executed using the unit or the function from the folder that has been last added by means of the AddFolderToPythonPath method.
The example of use is given in description of the IPythonUtils.Invoke method.
See also: