I am trying to use python to remap a set of layer files in a group layer (not within an mxd) but am unable to create a layer object for them so I can use replaceDataSource. One of my group layers is
I've attempted to use arcpy.mapping.Layer with the following paths:
C:\Workspace\LayerFiles\Administration.lyr\Ownership.lyr C:\Workspace\LayerFiles\Administration.lyr\Ownership C:\Workspace\LayerFiles\Administration\Ownership.lyr C:\Workspace\LayerFiles\Administration\Ownership
which all come up with ValueError: Object: CreateObject Layer invalid data source
Is there no way to get a direct path to layers within a group layer? If that's the case is there another means to create a layer object for each one within a loop? Hopefully there's a simple answer, but my search has come up empty so far.