Bug: Changes made to embedded script in a Python script tool do not persist
【相关信息】
Article ID: 41129
Bug Id: NIM091684
Software:
ArcGIS - ArcEditor 10
ArcGIS - ArcInfo 10
ArcGIS - ArcView 10
ArcGIS for Desktop Advanced 10.1
ArcGIS for Desktop Standard 10.1
ArcGIS for Desktop Basic 10.1
Platforms:
Windows XP, Server 2003, Windows 8, Server 2012, Vista, Server 2008, Windows 7
【BUG描述】
After embedding a Python script, edits made by right-clicking the script tool and clicking 'Edit' do not persist after closing the ArcGIS session. This means that changes made in this environment are lost when closing the application.
【BUG原因】
When a script tool is accessed, it creates a temporary Python script file in a Windows Temp directory. Upon closing the application, this directory is cleared. When edits are made to the script, they are applied to the temporary file. These changes are not posted back to the original code. Therefore, any changes that are made to the script are temporary to the session and do not apply to the actual source script from which the temporary file was created. This has been documented as NIM091684.
Article ID: 41129
Bug Id: NIM091684
Software:
ArcGIS - ArcEditor 10
ArcGIS - ArcInfo 10
ArcGIS - ArcView 10
ArcGIS for Desktop Advanced 10.1
ArcGIS for Desktop Standard 10.1
ArcGIS for Desktop Basic 10.1
Platforms:
Windows XP, Server 2003, Windows 8, Server 2012, Vista, Server 2008, Windows 7
【BUG描述】
After embedding a Python script, edits made by right-clicking the script tool and clicking 'Edit' do not persist after closing the ArcGIS session. This means that changes made in this environment are lost when closing the application.
【BUG原因】
When a script tool is accessed, it creates a temporary Python script file in a Windows Temp directory. Upon closing the application, this directory is cleared. When edits are made to the script, they are applied to the temporary file. These changes are not posted back to the original code. Therefore, any changes that are made to the script are temporary to the session and do not apply to the actual source script from which the temporary file was created. This has been documented as NIM091684.
1 个回复
EsriSupport
赞同来自:
To make permanent changes to the source code, export the script by right-clicking it and clicking Export Script, make changes to the exported script, and import the script back if desired.
【创建及修改时间】
Created: 4/29/2013
Last Modified: 8/6/2013
【原文链接】
http://support.esri.com/en/kno ... 41129
要回复问题请先登录或注册