Since arcpy is limited in how symbology can be manipulated, I was curious to know if a symbology layer can be stored in an arcpy add-in. Does anyone know if it is possible to store a .lyr file, or anything else for that matter, in a .esriaddin so that it can be used once the addin is installed?
Any file included in the
Install\ directory of your add-in project will be carried along in the Python add-in when you run
makeaddin.py. You can include layer files or anything else really. You'll find the absolute path to them on disk via
path_to_layer = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'mylayer.lyr')