mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
Merge pull request #3769 from adamgreig:fix-py3-submodules
This commit is contained in:
commit
133bd56436
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user