ljmvdburgt

python addin: best practise for persisting custom setting?

Discussion created by ljmvdburgt on Jan 22, 2014
Latest reply on Jan 22, 2014 by ljmvdburgt
Dear,

For the development of a Python addin (extension) for ArcMap I would like to manage a user setting which persists over multiple arcMap sessions.

I have been exploring several options with an xml settings file.
One of the things I found out that it is not possible to directly use a file included in the plugin's Install folder: the contents of this folder are overwritten in the Addin AssemblyCache folder so the original state of the settingsfile is reverted for each new ArcMap session.

I managed to find a solution by copying the settingsfile to a general accessible location and check for existence each time the extension loads. However, this is a rather devious solution. Any other ideas of how to accomplish this?

Cheers, Laurens

Outcomes