Select to view content in your preferred language

python tool - how to re-run it without refreshing?

389
1
08-02-2023 11:07 PM
nadja
by
Occasional Contributor III

We developed a python toolbox with one python script. The script doesnot need any parameters set, it just needs to run multiple times. 

Currently, we've managed that the script is executed once and it runs correctly. However, as soon as we close the opened window, the tool cannot be started again by clicking on it. 

But the tool can again be started by refreshing the tool - then it works again perfectly.  

The question to be answered is: what do we need to change to re-open an already run tool with no parameters?

Tags (3)
1 Reply
DanPatterson
MVP Esteemed Contributor

There is a hack here Solved: Refresh a Python Toolbox in ArcCatalog - Esri Community

involving re-importing (reload) any imports you did... see if it is appropriate


... sort of retired...