Instead of having egdb connection files in the project folder I'll rather refence them from Favorites. Is there a ArcPy variable?
Nothing formal in arcpy for most -- if not all -- application properties, but assuming your Pro installation uses the standard paths:
import ujson from os import path with open(path.expandvars(r"%APPDATA%\Esri\ArcGISPro\Favorites\Favorites.json")) as f: fav_data = ujson.load(f)
and then you can scan through the dictionary to get the paths you need.
Hello @RandyKreuziger1, you can and it would the file path "C:\Users\your user name\AppData\Roaming\Esri\ArcGISPro\Favorites\connection name.sde"
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.