diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-13 10:20:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-13 10:20:27 +0300 |
commit | c197c210e48c708eb380849488bd082adbc044eb (patch) | |
tree | c98894a3ce9e9dba41591307b2285b9c12909714 /source/blender/python/intern/bpy_app_icons.c | |
parent | 76d67b4db431591ddf18b131c462bd857950f254 (diff) |
PyAPI: add bpy.app.icons to sys.modules
Diffstat (limited to 'source/blender/python/intern/bpy_app_icons.c')
-rw-r--r-- | source/blender/python/intern/bpy_app_icons.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_app_icons.c b/source/blender/python/intern/bpy_app_icons.c index 4bd059dd295..19e369e4bff 100644 --- a/source/blender/python/intern/bpy_app_icons.c +++ b/source/blender/python/intern/bpy_app_icons.c @@ -177,7 +177,11 @@ static struct PyModuleDef M_AppIcons_module_def = { PyObject *BPY_app_icons_module(void) { + PyObject *sys_modules = PyImport_GetModuleDict(); + PyObject *mod = PyModule_Create(&M_AppIcons_module_def); + PyDict_SetItem(sys_modules, PyModule_GetNameObject(mod), mod); + return mod; } |