.... .... .... # List all FOLDERS in master workspace workspaces = gp.ListWorkspaces(dataFolders, "Folder") # Iterate through the workspaces one at a time for workspace in workspaces: # Error:iteration over non-sequence ... ... ...
import arcgisscripting gp = arcgisscripting.create() gp.OverWriteOutput = 'True' ... ... gp.workspace = startFromFolder # d:\projects\New\DaTa workspaces = gp.ListWorkspaces(dataFolders, "Folder") ## part_01 """ When using a 9.2-version geoprocessor, ListWorkspaces returns an enumeration instead of a Python List. """" for workspace in workspaces: ... ...
import arcgisscripting gp = arcgisscripting.create() gp.OverWriteOutput = 'True' ... ... gp.workspace = startFromFolder # d:\projects\New\DaTa workspaces = gp.ListWorkspaces(dataFolders, "Folder") ## part_01 ws = workspaces.next() #get the first item in the enumeration while ws: #repeat as long as ws has a value ... ... ws = workspaces.next() #usually the last line in the while loop