1 # loop through mxds 2 for name in mxdFileNames: 3 print '\nProcessing: ' + name 4 5 # get mxd 6 mxd = arcpy.mapping.MapDocument(baseFolder + '\\' + name) 7 8 # get datadrivenpages object 9 ddp = mxd.dataDrivenPages