Page MenuHome

Fix T62736: Inconsistent behavior of bpy.utils.user_resource() function
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Mar 19 2019, 12:54 PM.

Details

Summary

If a subfolder was specified which didnt exist, logic would fallback to
get_path_user [instead of get_path_environment].

Made a version of get_path_environment that doesnt check existance of
specified subfolder and used that in BKE_appdir_folder_id_user_notest

Diff Detail

Repository
rB Blender
Branch
T62736 (branched from master)
Build Status
Buildable 3181
Build 3181: arc lint + arc unit

Event Timeline

Campbell Barton (campbellbarton) added inline comments.
source/blender/blenkernel/intern/appdir.c
282

Could call this get_path_environment_notest ? get_path_environment also takes a subfolder.

source/blender/python/intern/bpy.c
170

This changes the behavior of how the directories are selected, however since using an environment variable is such an obscure feature and people who use it most likely want it to be respected. It seems OK.

This revision is now accepted and ready to land.Mar 19 2019, 5:32 PM