Skip to main content

ClearEnvironment

Resumen

Resets a specific environment setting to its default.

Sintaxis

ClearEnvironment(environment_name)

El parámetro Explicación Tipo de datos

environment_name

The name of the environment setting that will be reset to its default setting.

String

Muestra de código

ClearEnvironment example

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)