So I'm creating an arcpy script for a custom toolbox and I want to make it so that a user can essentially utilize the script in that toolbox without having to change the source path (which I made relative in the properties of the script), how do I go about doing so in Python or any other method? I'm guessing it might be under the tool validation code somehow, but I'm not sure.
|
I find that following the help about using Toolshare folders (and always moving them rather than the toolbox contained within) works well for me. It's from the same area of the documentation as Chad indicated but I'm not sure if you saw this part of it. |
|||
|
|
|
Sounds like you want to use relative paths to store the script that is associated with the Toolbox, if I understand the question properly. Right click on your Script in its Toolbox, go the General tab, check the "Store relative path names" option. From the help:
|
|||
|
