ListToolboxes

Resumen

Returns a list of toolboxes.

Sintaxis

ListToolboxes ({wild_card})
ParámetroExplicaciónTipo de datos
wild_card

Limits the results returned. If a value is not specified, all values are returned. The wildcard is not case sensitive.

SymbolDescriptionExample

*

Represents zero or more characters.

Te* finds Tennessee and Texas.

String
Valor de retorno
Tipo de datosExplicación
String

The list returned from the function containing geoprocessing toolbox names, limited by the optional wild_card argument.

Muestra de código

ListToolboxes example

List specified toolboxes.

import arcpy

# Get and print a list of all toolboxes.
toolboxes = arcpy.ListToolboxes()

for toolbox in toolboxes:
    print(toolbox)

Temas relacionados