mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fixed bug that prevented shared libs that are submodules of a
package to be loaded from a PYD resource.
This commit is contained in:
parent
b6c3ceae79
commit
0297dca941
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue