Tool Validator edit - How to change what editor is used ?

443
3
Jump to solution
02-07-2013 10:20 PM
MartinHvidberg
Occasional Contributor
Hi

When editing a tool validator class I do as described in the help:

" ... to program a ToolValidator class, right-click your tool, click Properties, click the Validation tab, then click Edit. This opens your installed Python editor, such as IDLE or PythonWin. ... "

taken from: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00150000000w000000.htm

Only on my computer the pyton code opens in Notepad, not in IDLE nor PyWin ... ?

QUESTION: Where do I change the setting that controls which editor is used?

I run ArcGIS 10.1 on a win7
In the windows environment .py files are set to default open with .../python.exe

Best Regards
Martin Hvidberg
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JakeSkinner
Esri Esteemed Contributor
Hi Martin,

In ArcMap, go to the Geoprocessing menu > Geoprocessing Options.  Under Script Tool Editor/Debugger set the Editor to the IDLE or PYTHONWIN executable.  Ex:

C:\Python27\ArcGIS10.1\Lib\site-packages\pythonwin\Pythonwin.exe

View solution in original post

0 Kudos
3 Replies
JakeSkinner
Esri Esteemed Contributor
Hi Martin,

In ArcMap, go to the Geoprocessing menu > Geoprocessing Options.  Under Script Tool Editor/Debugger set the Editor to the IDLE or PYTHONWIN executable.  Ex:

C:\Python27\ArcGIS10.1\Lib\site-packages\pythonwin\Pythonwin.exe
0 Kudos
MartinHvidberg
Occasional Contributor
Thanks, that worked.

It created a new (minor) question though: What's the difference between Editor and Debugger?

I used Editor and that generated the result I was lookuibg for.

Best Regards
Martin
0 Kudos
JakeSkinner
Esri Esteemed Contributor
See the following link below about debugging script tools:

http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000000m000000
0 Kudos