Cleanup: Using set for faster performance.

This commit is contained in:
2016-06-26 22:42:07 -05:00
parent 1cce8cda81
commit 48e4d3f2d9

View File

@@ -177,7 +177,7 @@ class WM_OT_update_index(bpy.types.Operator):
for name, content in addon_list["addons"].items(): for name, content in addon_list["addons"].items():
# Skip add-ons not installed to USER path # Skip add-ons not installed to USER path
# TODO: support above later # TODO: support above later
for a in installed: for a in set(installed):
if name == a.__name__ and user_path not in a.__file__: if name == a.__name__ and user_path not in a.__file__:
log.info("Not listing add-on %s, as it is installed to " log.info("Not listing add-on %s, as it is installed to "
"location other than USER path", name) "location other than USER path", name)