This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Allows you to pass in a list of environments to get the values of, then pass it back in to reset. | |
Usage: | |
original_envs = store_environments(["workspace","mask"]) # gives back a dict with current environment values for workspace and mask | |
arcpy.env.workspace = my_workspace | |
arcpy.env.mask = my_raster | |
# some more code here to do some work with those environments | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/data | |
/mosaic.gdb | |
/scratch.gdb |