mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Don't fail on importing things with undefined references. Unfortunately we
still fail on importing modules that link with libraries that fail their initialization code (such as windowing libraries when we don't have access to the window server) and that is what I really wanted to fix.
This commit is contained in:
parent
dd19cf8134
commit
e3d7622fb3
1 changed files with 2 additions and 1 deletions
|
@ -148,7 +148,8 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
|
|||
break;
|
||||
}
|
||||
if (errString == NULL) {
|
||||
newModule = NSLinkModule(image, pathname, TRUE);
|
||||
newModule = NSLinkModule(image, pathname,
|
||||
NSLINKMODULE_OPTION_BINDNOW|NSLINKMODULE_OPTION_RETURN_ON_ERROR);
|
||||
if (!newModule)
|
||||
errString = "Failure linking new module";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue