Commit 133bd564 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

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

parents 18904036 211a1313
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment