Fixed bug that prevented shared libs that are submodules of a

package to be loaded from a PYD resource.
This commit is contained in:
Just van Rossum 2001-06-26 06:54:33 +00:00
parent b6c3ceae79
commit 0297dca941

View file

@ -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;
}