laptop and a wrench

Bug

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.

Zuletzt veröffentlicht: March 26, 2019 ArcGIS Pro
Bug-ID-Nummer BUG-000115414
EingereichtJuly 17, 2018
Zuletzt geändertJuly 17, 2025
Gilt fürArcGIS Pro
Gefunden in Version2.2
BetriebssystemWindows OS
Betriebssystemversion7.0 64 Bit
Behoben in Version2.5.1
StatusFixed

Workaround

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000115414

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