Synthèse
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
Sets the specified environment setting back to its default.
import arcpy
arcpy.env.workspace = "c:/data/world.gdb"
# prints c:/data/world.gdb
print(arcpy.env.workspace)
arcpy.ClearEnvironment("workspace")
# prints None
print(arcpy.env.workspace)
Rubriques connexes
Vous avez un commentaire à formuler concernant cette rubrique ?