diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-11-18 09:06:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-11-18 09:06:53 +0400 |
commit | 5600d214f1f2f05e98fd6f4d5f86bdff01e8b3f8 (patch) | |
tree | dc35ebf81c9d424e9136e754d71e86146273d9d2 /release/scripts/modules | |
parent | 8a8566c8949f851cda3644073d1bff60b43b5abd (diff) | |
parent | c6c6a3578beae28a6c6c0164757ebbb694e7f816 (diff) |
svn merge ^/trunk/blender -r41939:41954
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/addon_utils.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/release/scripts/modules/addon_utils.py b/release/scripts/modules/addon_utils.py index 26611fb93ad..1bd218ad92a 100644 --- a/release/scripts/modules/addon_utils.py +++ b/release/scripts/modules/addon_utils.py @@ -62,7 +62,7 @@ def modules(module_cache): path_list = paths() # fake module importing - def fake_module(mod_name, mod_path, speedy=True): + def fake_module(mod_name, mod_path, speedy=True, force_support=None): global error_encoding if _bpy.app.debug: @@ -134,6 +134,9 @@ def modules(module_cache): traceback.print_exc() raise + if force_support is not None: + mod.bl_info["support"] = force_support + return mod else: return None @@ -141,6 +144,10 @@ def modules(module_cache): modules_stale = set(module_cache.keys()) for path in path_list: + + # force all contrib addons to be 'TESTING' + force_support = 'TESTING' if path.endswith("addons_contrib") else None + for mod_name, mod_path in _bpy.path.module_names(path): modules_stale -= {mod_name} mod = module_cache.get(mod_name) @@ -161,7 +168,7 @@ def modules(module_cache): mod = None if mod is None: - mod = fake_module(mod_name, mod_path) + mod = fake_module(mod_name, mod_path, force_support=force_support) if mod: module_cache[mod_name] = mod |