Commit 0297dca9 authored by Just van Rossum's avatar Just van Rossum

Fixed bug that prevented shared libs that are submodules of a

package to be loaded from a PYD resource.
parent b6c3ceae
......@@ -230,7 +230,7 @@ PyMac_LoadCodeResourceModule(name, pathname)
shortname = lastdot+1;
}
sprintf(funcname, FUNCNAME_PATTERN, shortname);
if( !findnamedresource((PyStringObject *)0, shortname, pathname, 'PYD ', fragmentname)) {
if( !findnamedresource((PyStringObject *)0, name, pathname, 'PYD ', fragmentname)) {
PyErr_SetString(PyExc_ImportError, "PYD resource not found");
return NULL;
}
......
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