move addon utilities into their own module, these were getting mixed between bpy.utils and space_userpref.

This commit is contained in:
Campbell Barton
2011-02-21 07:07:44 +00:00
parent 8c8ae3dedf
commit eee4a62e87
4 changed files with 334 additions and 299 deletions

View File

@@ -937,7 +937,7 @@ static int set_addons(int argc, const char **argv, void *data)
const int slen= strlen(argv[1]) + 10;
char *str= malloc(slen);
bContext *C= data;
BLI_snprintf(str, slen, "[__import__('bpy').utils.addon_enable(i) for i in '%s'.split(',')]", argv[1]);
BLI_snprintf(str, slen, "[__import__('addon_utils').enable(i) for i in '%s'.split(',')]", argv[1]);
BPY_CTX_SETUP(BPY_string_exec(C, str));
free(str);
#else