diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-29 10:10:22 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-29 10:22:32 +0300 |
commit | a66e58429472e0215a76a5930a14855731ca018d (patch) | |
tree | 9ff532c9024247f52eb6533c1ee0a50d07d3a0b2 /tests/python/bl_load_addons.py | |
parent | 46076e4876cfc4d933a32247bc0a1bba6e15662f (diff) |
Cleanup: correct API usage for script access
In practice this didn't cause problems, but accessing scripts via
bpy.utils.resource_path('USER') ignores the BLENDER_USER_SCRIPTS
environment variable.
Diffstat (limited to 'tests/python/bl_load_addons.py')
-rw-r--r-- | tests/python/bl_load_addons.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/python/bl_load_addons.py b/tests/python/bl_load_addons.py index b67bc22102c..8c90a1f93b8 100644 --- a/tests/python/bl_load_addons.py +++ b/tests/python/bl_load_addons.py @@ -14,7 +14,7 @@ import sys import importlib BLACKLIST_DIRS = ( - os.path.join(bpy.utils.resource_path('USER'), "scripts"), + bpy.utils.user_resource('SCRIPTS'), ) + tuple(addon_utils.paths()[1:]) BLACKLIST_ADDONS = set() |