GetInstallInfo (arcpy)
Récapitulatif
The GetInstallInfo function returns a Python dictionary that contains information on the installation type properties.
Syntaxe
GetInstallInfo ()
Type de données | Explication | ||||||||||||||||||||||||
Dictionary |
The function returns a Python dictionary containing the properties of the installation.
|
Exemple de code
GetInstallInfo example
Return installation information.
import arcpy
# Use the dictionary iteritems to iterate through
# the key/value pairs from GetInstallInfo
d = arcpy.GetInstallInfo()
for key, value in d.iteritems():
# Print a formatted string of the install key and its value
#
print("{:<13} : {}".format(key, value))
GetInstallInfo example 2
Return the product version.
import arcpy
print(arcpy.GetInstallInfo()['Version'])
Thèmes connexes
4/26/2014