laptop and a wrench

漏洞

The env.workspace parameter is reset after using a tool in the Spatial Analyst toolbox.

上次发布: September 23, 2020 ArcGIS Pro
漏洞 ID 编号 BUG-000132851
已提交August 5, 2020
上次修改时间June 5, 2024
适用范围ArcGIS Pro
找到的版本2.5.2
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Non-Reproducible

附加信息

This issue is fixed and not reproducible in ArcGIS Pro 2.6.

解决办法

The following workarounds are based on the findings of the user from the related case and GeoNet post:

  • No need to reset, simply printing it [the workspace] works fine.
  • Use full paths instead of the relative paths.
  • Use a ‘with arcpy.EnvManager(workspace = ‘\path\to\workspace):’ indent block rather than simply setting arcpy.env.workspace.

重现步骤

漏洞 ID: BUG-000132851

软件:

  • ArcGIS Pro

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项