Changing the default geodatabase

Discussion created by dsinton on Jan 10, 2013
Latest reply on Jan 10, 2019 by env.matt.wilkie
In ArcGIS 10.x ESRI introduced the concept of default geodatabases where output from geoprocessing tools would automatically go unless directed otherwise. The location that ArcGIS chooses for this default geodatabase doesn't fit the needs of our organization. I'm wondering if one can change the location of the default geodatabase and the home folder too by using Python. I'm somewhat experienced in scripting with Python but I can't find anywhere in arcpy that allows one to make this change. Does anyone out there know how to script this?