I would like an answer to this as well, regarding ArcGIS Desktop. I posted a new question at the link below asking a similar question.
https://community.esri.com/t5/arcmap-questions/where-are-geoprocessing-environment-settings/m-p/1308326
This next link is helpful but it does not address Geoprocessing Environment Settings > Default Geodatabase and Scratch Geodatabase.
https://community.esri.com/t5/esri-technical-support-blog/want-to-redirect-your-default-geodatabase/ba-p/899959
I didn't find an accessible solution for v10 arcpy, however in Pro it's available out of the box as arcpy.mp.ArcGISProject().defaultGeodatabase.
arcpy.mp.ArcGISProject().defaultGeodatabase.
See ArcGISProject—ArcPy | ArcGIS Desktop and file geodatabase - Setting default gdb from ArcPy? - Geographic Information Systems Stack Exchange for more
I'm wondering if one can change the location of the default geodatabase and the home folder too by using Python.
I was looking for a solution internal to ArcGIS. Maybe I'm wrong but the link you posted utilized ResEdit and that won't work for my needs.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.