try: import arcgisscripting except ImportError: import win32com.client class arcgisscripting(object): @staticmethod def create(): return win32com.client.Dispatch('esriGeoprocessing.GpDispatch.1')
feature_classes = gp.ListFeatureClasses() for fc in iter(feature_classes.Next, None): print fc
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.