From 0297dca94120e9e9ad96cfbc0c26cdfae93b8ad3 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Tue, 26 Jun 2001 06:54:33 +0000 Subject: [PATCH] Fixed bug that prevented shared libs that are submodules of a package to be loaded from a PYD resource. --- Mac/Python/macimport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mac/Python/macimport.c b/Mac/Python/macimport.c index 118101233f..b47a6940f5 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; } -- 2.49.0