Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/python/bl_load_addons.py')
-rw-r--r--tests/python/bl_load_addons.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/python/bl_load_addons.py b/tests/python/bl_load_addons.py
index e404e2340ce..d54d5c3c45f 100644
--- a/tests/python/bl_load_addons.py
+++ b/tests/python/bl_load_addons.py
@@ -64,7 +64,7 @@ def addon_modules_sorted():
def disable_addons():
# first disable all
- addons = bpy.context.user_preferences.addons
+ addons = bpy.context.preferences.addons
for mod_name in list(addons.keys()):
addon_utils.disable(mod_name, default_set=True)
assert(bool(addons) is False)
@@ -75,7 +75,7 @@ def test_load_addons():
disable_addons()
- addons = bpy.context.user_preferences.addons
+ addons = bpy.context.preferences.addons
addons_fail = []
@@ -97,7 +97,7 @@ def test_load_addons():
def reload_addons(do_reload=True, do_reverse=True):
modules = addon_modules_sorted()
- addons = bpy.context.user_preferences.addons
+ addons = bpy.context.preferences.addons
disable_addons()