[Bf-blender-cvs] [5d2620e] master: System info: also report enabled add-ons.
Bastien Montagne
noreply at git.blender.org
Sun Oct 23 13:14:49 CEST 2016
Commit: 5d2620e9c22eabfa3df712bbca18b19be72b9fc3
Author: Bastien Montagne
Date: Sun Oct 23 13:05:47 2016 +0200
Branches: master
https://developer.blender.org/rB5d2620e9c22eabfa3df712bbca18b19be72b9fc3
System info: also report enabled add-ons.
Based on idea & patch by @lijenstina over IRC (iirc :/ ).
===================================================================
M release/scripts/modules/sys_info.py
===================================================================
diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py
index 30b9cdf..1760518 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()
More information about the Bf-blender-cvs
mailing list