diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-01-23 08:34:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-01-23 08:37:30 +0300 |
commit | 22420226537fada6177432c5f48df06c83c10872 (patch) | |
tree | 5ddbcf2c7c82e6ad4bfc431293ed829f0b1c588b /source/blender/python/generic | |
parent | 3e8c0027a374e963e6e7e66f8a0e475af05b9943 (diff) |
PyAPI: Replace importlib.reload, not 'imp'
Diffstat (limited to 'source/blender/python/generic')
-rw-r--r-- | source/blender/python/generic/bpy_internal_import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/generic/bpy_internal_import.c b/source/blender/python/generic/bpy_internal_import.c index b0539607bdc..ed2752d8372 100644 --- a/source/blender/python/generic/bpy_internal_import.c +++ b/source/blender/python/generic/bpy_internal_import.c @@ -81,7 +81,7 @@ void bpy_import_init(PyObject *builtins) /* move reload here * XXX, use import hooks */ - mod = PyImport_ImportModuleLevel("imp", NULL, NULL, NULL, 0); + mod = PyImport_ImportModuleLevel("importlib", NULL, NULL, NULL, 0); if (mod) { PyObject *mod_dict = PyModule_GetDict(mod); @@ -93,7 +93,7 @@ void bpy_import_init(PyObject *builtins) Py_DECREF(mod); } else { - BLI_assert(!"unable to load 'imp' module."); + BLI_assert(!"unable to load 'importlib' module."); } } |