GeoEco.ArcGIS.GeoprocessorManager.GetArcGISMajorVersion

classmethod GeoprocessorManager.GetArcGISMajorVersion()

Returns the major version number of the installed copy of ArcGIS.

The version number is extracted from the Version key of the dictionary returned by GetInstallInfo(), unless a ProVersion key exists, which will happen if ArcGIS Server is installed, in which case ProVersion will be used. This means that if ArcGIS Server is installed, the version number will be based on the version of ArcGIS Pro that Server is compatible with, not on the version number of ArcGIS Server itself.

Raises:

SoftwareNotInstalledError – ArcGIS does not appear to be installed.

Returns:

The major version number of the installed copy of ArcGIS.

Return type:

int