[Bf-blender-cvs] [2242022] master: PyAPI: Replace importlib.reload, not 'imp'
Campbell Barton
noreply at git.blender.org
Fri Jan 23 06:39:11 CET 2015
Commit: 22420226537fada6177432c5f48df06c83c10872
Author: Campbell Barton
Date: Fri Jan 23 16:34:08 2015 +1100
Branches: master
https://developer.blender.org/rB22420226537fada6177432c5f48df06c83c10872
PyAPI: Replace importlib.reload, not 'imp'
===================================================================
M source/blender/python/generic/bpy_internal_import.c
===================================================================
diff --git a/source/blender/python/generic/bpy_internal_import.c b/source/blender/python/generic/bpy_internal_import.c
index b053960..ed2752d 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.");
}
}
More information about the Bf-blender-cvs
mailing list