I have a script that is supposed to automate exporting several map documents. I have it set up as a script tool. The user is prompted to enter a few things, including several MXDs to be exported. I have handled those values as a list and used the 'split' function to separate them:mapList = string.split(sys.argv[1],";")
After that I have a loop that is supposed to loop through the above list and export the maps. However, when I run the script I get the error: <type 'exceptions.AssertionError'>: Invalid MXD filename.
The top of the loop looks like this:for map in mapList:
mxd = arcpy.mapping.MapDocument(map)
I know the rest of the code works, because if I take out the 'map' variable and directly enter the file path of an MXD the script works. I assume it is something blatantly simple, but I just can't figure it out. Any help would be appreciated.