dem = r'C:/project/raster/dem'
r'C:/project/Add-In'
Yeah, I think including a text file with a path in the add-in would work. Another option is using a registry key.
If I understood correctly, how would including a text file with a path be different than simply hard coding paths in the logic script?
The issue at hand is to read files outside the folder where addin is placed. So it would be something like this:
say addin is in following folder: 'C:/proj/addin/addin.esriaddin'
and I want addin to recognise files in: 'C:/proj/data/raster1' or 'raster2.....'
In above instance, data and addin are placed in C drive but I want addin to be configured in a way so that it can read data even if it is placed in D or E or F drive without the need to hard code the root directory path in logic script. This way, user can simply place updated addin in the designated folder irrespective of what drive it is residing in.
Please let me know if my answer isn't clear.