if [ArcGIS 10]: Do this else [ArcGIS 9.3]: Do this
try: installInfoDict = arcpy.GetInstallInfo("DESKTOP") except: installInfoDict = gp.getinstallinfo("DESKTOP") if installInfoDict['Version'] == '10.0': do this elif if installInfoDict['Version'] == '9.3': do that else: do someting completely different
try: import arcpy as gp gp_version = 10.0 except: import arcgisscripting as gp gp_version = 9.3
if gp_version == 10.0: #do the arcpy stuff else: #do the arcgiscripting stuff
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.