I have a CSV file with a list of unique data sources extracted from an ArcGIS map document. I would like to list all ESRI GRID rasters that appear in the list.
One example is:
I understand the (arcgis.env.workspace) needs to be set first but I'm not sure how this can be done if there are multiple GRID files in different directories.
One code block I have tried results in a TypeError:
for pth in newList: # iterates through each unique path pthDir = os.path.dirname(pth) arcpy.env.workspace = pthDir esriGridList = arcpy.ListRasters("*", "GRID") print esriGridList
Produces the error:
TypeError: 'NoneType' object is not iterable