How to autoload a toolbox in python ArcGis Pro 2.6

577
2
12-11-2020 05:30 AM
Labels (1)
servicesigu
New Contributor III

Hello,

I've build a python toolbox stored in the directory "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\sigupy\esri\toolboxes", so that it can be loaded as a system toolbox.

Is there a way to load this toolbox automatically in the python interprter windows ?

Thanks in advance for your reply.

SF

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

If you want to store the toolbox within Pro's toolbox structure, they provide some guidance here

Extending geoprocessing through Python modules—ArcGIS Pro | Documentation

and here

Adding toolboxes in Python—ArcGIS Pro | Documentation

otherwise, you can just store your toolbox in the folder path of your project which won't help with other projects however


... sort of retired...
DanPatterson
MVP Esteemed Contributor

As an addendum, you could set a default toolbox if you structure your folders for new projects

Change project settings—ArcGIS Pro | Documentation


... sort of retired...
0 Kudos