tornavis/source
Campbell Barton bf4926b30c Support environment variables to override USER & SYSTEM resource paths
Even though individual USER/SYSTEM paths could be set using environment variables,
it wasn't possible to override the USER or SYSTEM paths.

This meant the result of `bpy.utils.resource_path('USER')` &
`bpy.utils.resource_path('SYSTEM')` could still be used by scripts,
making the Blender session potentially the default USER directory
(even when `BLENDER_USER_CONFIG`, `BLENDER_USER_SCRIPTS` &
`BLENDER_USER_DATAFILES` all point elsewhere).

Resolve by adding environment variables:

- BLENDER_USER_RESOURCES
- BLENDER_SYSTEM_RESOURCES

These will be used for `bpy.utils.resource_path('USER')` &
`bpy.utils.resource_path('SYSTEM')`, as well as a basis for user &
system directories, unless those environment variables are
set (`BLENDER_USER_*` or `BLENDER_SYSTEM_*`).

Resolves issue raised by T101389.

Example usage & output:

{P3225}

Reviewed By: brecht

Ref D16111
2022-10-04 13:54:09 +11:00
..
blender Support environment variables to override USER & SYSTEM resource paths 2022-10-04 13:54:09 +11:00
creator Support environment variables to override USER & SYSTEM resource paths 2022-10-04 13:54:09 +11:00
tools@2ab59df2c9 Bump submodule versions 2022-09-28 13:45:22 +02:00
CMakeLists.txt Clang-tidy: Don't warn about unrecognized compiler flags 2022-05-06 15:26:54 +02:00