I have followed the Python course very recently and just finished my first script. To make it more generic I need to know the name of the current MXD
In the script I use:
mxd = arcpy.mapping.MapDocument("CURRENT")
How can I get the name of the used mxd. Tried os.path.basename(mxd) but that did not work. Got the error: MapDocument is unsubscriptable
Regards,
Bob