DEV Community

Diogo Rosanelli
Diogo Rosanelli

Posted on

ArcGIS Toolbox Reload

If you are a developer in the ArcGIS universe, have you ever had to develop a tool using a Python Toolbox (.pyt), and came across a problem: when updating the source code of your tool, you had to close ArcGIS Pro and open it again for the updates to be made.

The ArcGIS environment uses the compiled version of Python codes (.pyc), and therefore references need to be reloaded explicitly within the source code, and you can do this through the importlib library that reloads the reference for your module, and it is then updated without that you may need to restart ArcGIS Pro to test changes to your code.

Image description

Have you ever experienced this situation? What do you think of this resource? Did you already know this code tip? Leave a comment...

DEV #PYTHON #ARCGIS #ESRI #RELOAD #MODULE #PYT #PYC #TOOLBOX

👋 While you are here

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay