HowTo:  Enable the color highlighting for PYT files in PyScripter

相关信息
Article ID: 40258
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 how to enable color highlighting of Python toolboxes (PYT files) in PyScripter. PyScripter is a Python integrated development environment (IDE) for Windows.

Python toolboxes (.pyt) are geoprocessing toolboxes that are created entirely in Python. Although these tools are recognized by ArcGIS Software as Python scripts, they may or may not be treated as Python scripts within various Python IDEs. To ensure that these files are recognized by a Python IDE it may be necessary to include the .pyt extension in the settings for the IDE.
已邀请:

易智瑞技术支持

赞同来自:

解决方案
The following steps enable the color highlighting on a Python toolbox that is being edited within PyScripter.
  1. Open PyScripter.
  2. Selects Tools > Options > IDE Options.
  3. Scroll down to the File Filters section of the IDE Options dialog box.
  4. Add a semicolon and *.pyt to the Open dialog Python filter. 
  5. Click OK.


创建及修改时间
Created: 5/14/2012

Last Modified: 7/10/2013
原文链接
http://support.esri.com/en/kno ... 40258

要回复问题请先登录注册