I am running some ArcPy scripts and the tools keep wanting to write to my c:\users\appdata\local\temp location. I have set the scratchworkspace and workspace environment variables of arcpy to a drive but am still getting issues where it is trying to write to C. Looking around, I found reference to setting windows environment variables "TEMP" and "TMP" to a different location but cannot work out how to implement this. Thoughts?
class xx(): def __init__(self): self.scratch = 't:/right_here' def xy(self): arcpy.env.scratchWorkspace = self.scratch expand = EucAllocation('t:/over_here/raster', '1') ERROR 010296: Error in writing raster c:\users\me\appdata\local\temp\t_t403
I am still having problems with this.. Only seems to be euclidean allocation. I have as well set the env.workspace to a location not c: