I am working with a notebook in ArcGIS Pro and I want to add all .lyrx files within a local folder to a map.
I have set the workspace and created a list with:
arcpy.env.workspace = "path to my data"
list_layers = arcpy.ListFiles("*.lyrx")
which works fine. I have tried to create a for loop to iterate though the list and add the layers to the map in my current project without success.
I realise this is probably easy to do but I can't work it out. Any help would be greatly appreciated!