I have a python script where I write result into a text file and I don't want to add the text file in my map document. But it is added automatically.
I tried with this line:
arcpy.env.addOutputsToMap = False
but it doesn't work.
import arcpy arcpy.env.addOutputsToMap = False txt_file = arcpy.GetParameterAsText(0) fichier = open(txt_file, "w") fichier.write("test") fichier.close()
Are there any way to not add the text file automatically?