I'm writing a python tool to update datasources in multiple ArcGIS pro related files from a network location to a local drive.
With ArcGIS Projects (.aprx) files, this is fine as there are methods on the project/map to update datasources. For layout files- (.pagx) which we use for standardised templates imported into the users prodject using another custom python tool, there is no such methods.
How can I bulk update .pagx layouts? Is it possible to generate a temporary ArcGIS pro project in memory, import the layout, update datasources, re-export the pagx?