I would like to change the file description with a python code on ArcMap (10.6). I could not find a way to do it or resource explaining it.
Do you have any idea?
Take a look at Layer - ArcGIS Desktop Help.
lyr = arcpy.mapping.ListLayers(mxd)[0]
lyr.description = "This is the description of this layer"
.img
file to somebody without the metadata file, he will not see the description.