khan18

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

Discussion created by khan18 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

r'C:/project/Add-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.

Outcomes