HowTo: Change the default editor for a Python Toolbox from Notepad to IDLE
【相关信息】
Article ID: 40263
Software:
ArcGIS for Desktop Advanced 10.1
ArcGIS for Desktop Standard 10.1
ArcGIS for Desktop Basic 10.1
Platforms: N/A
【问题描述】
Instructions provided describe the steps to change the default editor for Python toolboxes to IDLE. IDLE is an integrated development environment (IDE) for Python.
A Python toolbox (.pyt) opens for editing in Notepad if no editor is specified in the geoprocessing options of ArcMap/ArcCatalog.
We changed the default editor to Notepad because we cannot guarantee where IDLE will be installed and file associations with special file types (i.e. pyt) are not easily controllable within the Windows 7 framework. Although we suggest that Python be installed in the directory established by the ArcGIS install, our users have the option to install Python in the directory of their choice or modify the structure of the Python install at their discretion.
As a result, we find it more efficient to default the editor to notepad because we always know where notepad will be installed on the system.
Article ID: 40263
Software:
ArcGIS for Desktop Advanced 10.1
ArcGIS for Desktop Standard 10.1
ArcGIS for Desktop Basic 10.1
Platforms: N/A
【问题描述】
Instructions provided describe the steps to change the default editor for Python toolboxes to IDLE. IDLE is an integrated development environment (IDE) for Python.
A Python toolbox (.pyt) opens for editing in Notepad if no editor is specified in the geoprocessing options of ArcMap/ArcCatalog.
We changed the default editor to Notepad because we cannot guarantee where IDLE will be installed and file associations with special file types (i.e. pyt) are not easily controllable within the Windows 7 framework. Although we suggest that Python be installed in the directory established by the ArcGIS install, our users have the option to install Python in the directory of their choice or modify the structure of the Python install at their discretion.
As a result, we find it more efficient to default the editor to notepad because we always know where notepad will be installed on the system.
1 个回复
EsriSupport
赞同来自:
The following steps define the default Python editor as IDLE.
【创建及修改时间】
Created: 5/14/2012
Last Modified: 7/10/2013
【原文链接】
http://support.esri.com/en/kno ... 40263
要回复问题请先登录或注册