ClearEnvironment (arcpy)
Récapitulatif
Resets a specific environment setting to its default.
Syntaxe
ClearEnvironment (environment_name)
Paramètre | Explication | Type de données |
environment_name |
The name of the environment setting that will be reset to its default setting. | String |
Exemple de code
ClearEnvironment example
Sets the specified environment setting back to its default.
import arcpy
from arcpy import env
env.workspace = "C:/Data/World.gdb"
# prints C:/Data/World.gdb
print env.workspace
arcpy.ClearEnvironment("workspace")
# prints None
print env.workspace
Thèmes connexes
9/12/2013