Merge pull request #3769 from adamgreig:fix-py3-submodules

This commit is contained in:
Vadim Pisarevsky 2015-03-13 13:15:51 +00:00
commit 133bd56436

View File

@ -1235,7 +1235,9 @@ static void init_submodule(PyObject * root, const char * name, PyMethodDef * met
submod = PyImport_AddModule(full_name.c_str());
PyDict_SetItemString(d, short_name.c_str(), submod);
}
root = submod;
if (short_name != "")
root = submod;
}
// populate module's dict