I am using Python to update layer names and symbology on a map layout. Some layer names may be different so I was attempting to use a wildcard, but am not having luck. I am not receiving an error, but nothing is changing. The layer name could be named FirePoint_1, FirePoint_2, ... etc.
for lyr in mp.listLayers(): if lyr.isFeatureLayer: sym = lyr.symbology if lyr.name == "FirePoint*": lyr.name = "Fire Origin" sym.renderer.symbol.applySymbolFromGallery("Fire Station") lyr.symbology = sym