[Python-checkins] CVS: python/dist/src/Mac/Python macimport.c,1.10,1.11
Just van Rossum
jvr@users.sourceforge.net
Mon, 25 Jun 2001 23:54:36 -0700
Update of /cvsroot/python/python/dist/src/Mac/Python
In directory usw-pr-cvs1:/tmp/cvs-serv21311
Modified Files:
macimport.c
Log Message:
Fixed bug that prevented shared libs that are submodules of a
package to be loaded from a PYD resource.
Index: macimport.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Python/macimport.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** macimport.c 2001/05/22 14:13:02 1.10
--- macimport.c 2001/06/26 06:54:33 1.11
***************
*** 231,235 ****
}
sprintf(funcname, FUNCNAME_PATTERN, shortname);
! if( !findnamedresource((PyStringObject *)0, shortname, pathname, 'PYD ', fragmentname)) {
PyErr_SetString(PyExc_ImportError, "PYD resource not found");
return NULL;
--- 231,235 ----
}
sprintf(funcname, FUNCNAME_PATTERN, shortname);
! if( !findnamedresource((PyStringObject *)0, name, pathname, 'PYD ', fragmentname)) {
PyErr_SetString(PyExc_ImportError, "PYD resource not found");
return NULL;