style cleanup: comments & spelling
This commit is contained in:
@@ -59,6 +59,19 @@ static PyMethodDef bpy_reload_meth;
|
||||
static PyObject *imp_reload_orig = NULL;
|
||||
|
||||
/* 'builtins' is most likely PyEval_GetBuiltins() */
|
||||
|
||||
/**
|
||||
* \note to the discerning developer, yes - this is nasty
|
||||
* monkey-patching our own import into Python's builtin 'imp' module.
|
||||
*
|
||||
* However Python's alternative is to use import hooks,
|
||||
* which are implemented in a way that we can't use our own importer as a
|
||||
* fall-back (instead we must try and fail - raise an exception evert time).
|
||||
* Since importing from blenders text-blocks is not the common case
|
||||
* I prefer to use Pythons import by default and fall-back to
|
||||
* Blenders - which we can only do by intercepting import calls I'm afraid.
|
||||
* - Campbell
|
||||
*/
|
||||
void bpy_import_init(PyObject *builtins)
|
||||
{
|
||||
PyObject *item;
|
||||
|
||||
Reference in New Issue
Block a user