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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.