GetInstallInfo
Resumen
The GetInstallInfo function returns a Python dictionary that contains information on the installation type properties.
Sintaxis
GetInstallInfo ()
| Tipo de datos | Explicación | ||||||||||||||||||||||||
| Dictionary |
The function returns a Python dictionary containing the properties of the installation.
|
Ejemplo de código
GetInstallInfo example
Return installation information on the ArcGIS Desktop installation.
import arcpy
# Use the dictionary iteritems to iterate through
# the key/value pairs from GetInstallInfo
for key, value in arcpy.GetInstallInfo("desktop").iteritems:
# Print a formatted string of the install key and its value
#
print "%-13s: %s" % (key, value)
Temas relacionados
7/10/2012