Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

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

$
0
0
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.:

Code:

dem = r'C:/project/raster/dem'
and Add-In is in

Code:

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.

Viewing all articles
Browse latest Browse all 2485

Latest Images

Trending Articles



Latest Images