AnsweredAssumed Answered

Does arc.env() get workspace only from GP menu settings?

Question asked by ftonini_msugis on Mar 16, 2017
Latest reply on Jun 2, 2017 by SWalbridge-esristaff


I noticed a strange behavior in the arc.env() function in the arcgisbindings package. According to the user guide, this function is supposedly grabbing the workspace folder from the GP tool environment settings. However, I noticed it ONLY grabs the Environment Settings from the main Geoprocessing menu in ArcMap, NOT the Environment Settings of the geoprocessing script tool. See my example and attached figures.


1- Setting my GP tool environment settings workspace to custom folder on disk


2- The tool runs but arc.env() is not affected by custom change and still return default Settings ".../ArcGIS/Default.gdb":

3- I now change the GP menu Settings in ArcMap to match those of my GP tool, and the arc.env() path is now grabbed correctly:


Is this intended behavior or a bug?