laptop and a wrench

Bogue

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

Dernière publication: September 23, 2020 ArcGIS Pro
Numéro d’ID de bogue BUG-000132851
EnvoiAugust 5, 2020
Dernière modificationJune 5, 2024
S’applique àArcGIS Pro
Version trouvée2.5.2
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutNon-Reproducible

Informations supplémentaires

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

Solution de contournement

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.

Étapes pour reproduire

ID de bogue: BUG-000132851

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement