Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macimport.c @ 18275:9734f895f4fb legacy-trunk
Fixed bug that prevented shared libs that are submodules of a
package to be loaded from a PYD resource.
| author | Just van Rossum <just@letterror.com> |
|---|---|
| date | Tue, 26 Jun 2001 06:54:33 +0000 |
| parents | 5d50d1fae078 |
| children | d3268d62e462 |
line wrap: on
line diff
--- a/Mac/Python/macimport.c Tue Jun 26 03:36:28 2001 +0000 +++ b/Mac/Python/macimport.c Tue Jun 26 06:54:33 2001 +0000 @@ -230,7 +230,7 @@ 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; }
