Synthèse
Returns a dictionary that contains information about the installation.
Syntaxe
GetInstallInfo ()
Type de données | Explication |
Dictionary | A dictionary containing the properties of the installation. The dictionary keys are as follows:
|
Exemple de code
Get the installation information.
import arcpy
# Use the dictionary iteritems to iterate through the key/value pairs from
# GetInstallInfo.
d = arcpy.GetInstallInfo()
for key, value in list(d.items()):
# Print a formatted string of the install key and its value
print("{:<13} : {}".format(key, value))
Get the product version.
import arcpy
print(arcpy.GetInstallInfo()['Version'])
Rubriques connexes
Vous avez un commentaire à formuler concernant cette rubrique ?