From: Just van Rossum Date: Tue, 26 Jun 2001 06:54:33 +0000 (+0000) Subject: Fixed bug that prevented shared libs that are submodules of a X-Git-Tag: v2.2a3~1422 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0297dca94120e9e9ad96cfbc0c26cdfae93b8ad3;p=thirdparty%2FPython%2Fcpython.git Fixed bug that prevented shared libs that are submodules of a package to be loaded from a PYD resource. --- diff --git a/Mac/Python/macimport.c b/Mac/Python/macimport.c index 118101233f63..b47a6940f507 100644 --- a/Mac/Python/macimport.c +++ b/Mac/Python/macimport.c @@ -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; }