summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macimport.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Python/macimport.c')
-rw-r--r--Mac/Python/macimport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Python/macimport.c b/Mac/Python/macimport.c
index 1181012..b47a694 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;
}