Does anyone know of a way to dynamically find the ArcGIS profile directory without having to code each in explicitly with an if/else? Specifically, I am trying to access the Custom Transformations folder.For example, I have 9.3.1 on Windows XP or 10.0 on Windows 7 and test doing something like the followingif windows[0] == "6": trans_dir = os.getenv("USERPROFILE") +os.sep+ r"AppData\Roaming\ESRI\Desktop10.0\ArcToolbox\CustomTransformations" elif windows[0] == "5": trans_dir = os.getenv("USERPROFILE") +os.sep+ r"Application Data\ESRI\ArcToolbox\CustomTransformations"But also may run into situations where there is 9.3.1 on Windows 7, or 10.0 on Windows XP. Putting each possibility in seems rather sloppy. Is there a cleaner way to go about this?