I have a script that prints and exports a batch of MXDs. It runs fine as long as the lenght of the path and mxd are shorter. I can't tell what the 'sweet spot' is, but I know it runs fine on my c:/temp and doesn't run well when it gets to over 30 characters. The file structure is setup very lengthy and cumbersome and probably not going to change. Is there a way to temporary copy these files to temporary location on the C: drive then loop into the rest of script? Something like this.
import arcpy import shutil temp = r"C:/temp" for Copymxd in InputMXDs shutil.move(Copymxd, temp) for MXDPath in temp: #This is the rest of the script