I created and successfully tested a Python script tool, for which I included some validation code, in ArcGIS Pro 1.3.1.
To write the validation code I right-clicked on the Python script tool in its standard toolbox to open its Tool Properties, went to the Validation tab and clicked Open in Script Editor.
This opened IDLE, allowed me to edit the code, and after I saved and closed IDLE, clicked OK to close the Tool Properties, and ran the tool the validation that I had just set clearly worked.
Five minutes later I went to enhance the validation code using the same editing workflow but found that clicking Open in Script Editor no longer opened IDLE to allow me to edit it.
I have rebooted my machine and the Open in Script Editor button is still no longer opening IDLE.
Via comments at the time I determined that I could get a very suboptimal script editor in Notepad to work by using the Ribbon to access ANALYSIS | Geoprocessing Options to set the Script Editor to
However, doing the same thing to try and set the Script Editor to
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\idlelib\idle.pyw returns the Open in Script Editor button to doing nothing.
I few weeks later I moved to another machine which had been upgraded to ArcGIS Pro 1.4.1 and I was hoping that would fix whatever was astray but it has not.
Is there any other method that can be used to be able to always edit the validation code for a Python script tool of ArcGIS Pro by using a Python IDE better than Notepad?
I have considered re-writing the tool as a Python Toolbox (
*.pyt)but the site I am working with are more comfortable using Standard Toolboxes (
*.tbx) so I would like to avoid doing that.