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:
authorBastien Montagne <montagne29@wanadoo.fr>2016-10-23 14:05:47 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-10-23 14:05:47 +0300
commit5d2620e9c22eabfa3df712bbca18b19be72b9fc3 (patch)
tree057a7541dc4c95733e4f5b2cd30785dfb0de44e1 /release
parent672e906d49e6edee056bc1df7c413fb98f04f24a (diff)
System info: also report enabled add-ons.
Based on idea & patch by @lijenstina over IRC (iirc :/ ).
Diffstat (limited to 'release')
-rw-r--r--release/scripts/modules/sys_info.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py
index 30b9cdfaf37..176051870b0 100644
--- a/release/scripts/modules/sys_info.py
+++ b/release/scripts/modules/sys_info.py
@@ -212,4 +212,14 @@ def write_sysinfo(filepath):
output.write(title("Cycles"))
output.write(cycles.engine.system_info())
+ import addon_utils
+ addon_utils.modules()
+ output.write(title("Enabled add-ons"))
+ for addon in bpy.context.user_preferences.addons.keys():
+ addon_mod = addon_utils.addons_fake_modules.get(addon, None)
+ if addon_mod is None:
+ output.write("\t %s (MISSING)\n" % (addon))
+ else:
+ output.write("\t %s (%s, %s)\n" % (addon, addon_mod.bl_info.get('version', "UNKNOWN"), addon_mod.__file__))
+
output.close()