Current Workspace (Environment setting)

Tools that honor the Current Workspace environment setting use the workspace specified as the default location for geoprocessing tool inputs and outputs.

Learn more about using the current and scratch workspace environments.

Usage notes

Dialog syntax

Scripting syntax

arcpy.env.workspace = path

Parameter

Explanation

path

The default location for geoprocessing tool input and output.

workspace syntax

Script example

import arcpy

# Set the workspace environment to local file geodatabase
arcpy.env.workspace = "C:/data/base.gdb"

Related Topics


3/13/2012