How to make file paths configurable within an ArcGIS Python Add-In?

Discussion created by ibraheem99 on Jul 11, 2013
Latest reply on Jul 20, 2013 by Wayne_Whitley
I have a project folder with sub-folders containing several files on my hard disk which I read from within my Python Add-In, its hard coded e.g.:

dem = r'C:/project/raster/dem'

and Add-In is in


folder. I am using os.path options to get local path with all folders located within Install folder of Add-In. But this isn't feasible for case where I have to update scripts and provide it to others as it involves transfer of gigabytes of data, which goes into AssemblyCache with each install. Please suggest how to make file paths configurable within Add-In to read files outside it.