diff options
author | Just van Rossum <just@letterror.com> | 2001-06-26 06:54:33 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2001-06-26 06:54:33 (GMT) |
commit | 0297dca94120e9e9ad96cfbc0c26cdfae93b8ad3 (patch) | |
tree | 6fb646c24b60ee53088986fd7b87abfd80be9fc9 /Mac/Python | |
parent | b6c3ceae79f193e4361651fea61dfb2528bc2746 (diff) | |
download | cpython-0297dca94120e9e9ad96cfbc0c26cdfae93b8ad3.zip cpython-0297dca94120e9e9ad96cfbc0c26cdfae93b8ad3.tar.gz cpython-0297dca94120e9e9ad96cfbc0c26cdfae93b8ad3.tar.bz2 |
Fixed bug that prevented shared libs that are submodules of a
package to be loaded from a PYD resource.
Diffstat (limited to 'Mac/Python')
-rw-r--r-- | Mac/Python/macimport.c | 2 |
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; } |