Page MenuHome

Confusing output of bpy.utils.user_resource
Closed, InvalidPublic


System Information
Windows 10 x64

Blender Version
Broken: 2.78.3 8b29059

Short description of error
Confusing output of bpy.utils.user_resource AUTOSAVE and DATAFILES folders.

Exact steps for others to reproduce the error

>>> bpy.utils.user_resource('AUTOSAVE')
'C:\\Users\\Username\\AppData\\Roaming\\Blender Foundation\\Blender\\2.78\\autosave\\'

When an actual folder for autosave files specified in User Preferences → File → Temp C:\Users\Username\AppData\Local\Temp\

>>> bpy.utils.user_resource('DATAFILES')
'C:\\Users\\Username\\AppData\\Roaming\\Blender Foundation\\Blender\\2.78\\datafiles\\'

Here I'm not sure what datafiles folder is supposed to represent. Is that C:\Users\Username\AppData\Roaming\Blender Foundation\Blender\2.78\ where config folder located?

Or maybe output is how it supposed to be for some unknown reason? Unfortunately Python API doesn't explain it.



Event Timeline

Aaron Carlisle (Blendify) triaged this task as Confirmed priority.Feb 2 2017, 5:54 AM

Something is defiantly off here. It is returning paths that do not exist

I don’t understand what is the issue here? This user_resource function just returns canonical paths where to store some kind of data, for the current user. That’s all. Path does not have to exists (function can even create it if required), and Blender is not supposed to use it (or not), this is hint for user (scripts/add-ons typically) to know where to put there own stuff.

E.g. if you want to know what path Blender uses as temp dir, look at, you also have py.utils.resource_path

Also, this is not a bug report at all, please seek user support on user forums like or