laptop and a wrench

Bug

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

Zuletzt veröffentlicht: September 23, 2020 ArcGIS Pro
Bug-ID-Nummer BUG-000132851
EingereichtAugust 5, 2020
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Pro
Gefunden in Version2.5.2
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusNon-Reproducible

Zusätzliche Informationen

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

Workaround

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000132851

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln