How do I programmatically add a locator to an unopened mxd? I can't find any esri pages that reference adding a locator using python. Everything just mentions adding layers to a map document using arcpy.mapping.AddLayer.
Basically what I'm trying to do is script the building of a runtime locator. I have all the other pieces in place except for adding the locator to the mxd.
Instead of doing it that way, I just manually created an MXD with the locator in it. The locator gets rebuilt then the runtime content gets created using the same MXD over and over.