set_workspace
Sets the default folder or geodatabase for geoprocessing inputs and outputs, so tools can run without specifying full file paths.
Instructions
Set arcpy.env.workspace — the default location for inputs/outputs when no full path is provided to geoprocessing tools.
Args: workspace: Full path to folder or GDB (e.g. C:/data or C:/data/mydb.gdb)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |