AnsweredAssumed Answered

Why doesn't ResetEnvironments() reset overwriteOutput?

Question asked by alexander.epp on Jul 27, 2018
Latest reply on Jul 30, 2018 by alexander.epp

I was getting some strange behaviour with my tests and eventually tracked it down to this:

arcpy.env.overwriteOutput = False
arcpy.ResetEnvironments()
print(arcpy.env.overwriteOutput)

arcpy.env.overwriteOutput = True
arcpy.ResetEnvironments()
print(arcpy.env.overwriteOutput)

which will print:

False
True

 Am I missing something from the documentation that would explain this behavior?

 

I am using the version of python and arcpy that comes with ArcGIS Pro 2.2.0

Outcomes