import arcpy, os from arcpy import env folder = r"H:\Projects\H107039_PeterW\workpackages" for (path, dirs, files) in os.walk(folder): if ".gdb" not in path.lower(): env.workspace = path databases = arcpy.ListWorkspaces("*", "FileGDB") for database in databases: arcpy.TableToDomain_management(r"C:\TEMP\Python\domain.dbf", "Code", "Desc", database, "City")
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.