laptop and a wrench

漏洞

Including arcpy.env.workspace in a string in a Python argument in an embedded script tool in ArcGIS Pro results in a g_ESRI_variable being added to the script when the project is shared as a template which can sometimes break the script.

上次发布: March 26, 2019 ArcGIS Pro
漏洞 ID 编号 BUG-000115414
已提交July 17, 2018
上次修改时间July 17, 2025
适用范围ArcGIS Pro
找到的版本2.2
操作系统Windows OS
操作系统版本7.0 64 Bit
修正版本2.5.1
状态Fixed

解决办法

1. Add the toolbox manually rather than saving as a template.

2. Replace the arcpy.env.workspace with the equivalent variable.

3. Remove the arcpy.env.workspace variable completely if not necessary.

重现步骤

漏洞 ID: BUG-000115414

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项