summaryrefslogtreecommitdiff
path: root/Python/dynload_next.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-12-06 22:58:56 +0000
committerJack Jansen <jack.jansen@cwi.nl>2001-12-06 22:58:56 +0000
commitebb4d946a33068778f3ea5e0e729a7e7ad8b5d12 (patch)
tree11954f0f563cb89f5637e58638f118638e9010fc /Python/dynload_next.c
parentf0618ed8b9108ae270f6c72b0d2eb0844b3d2d9b (diff)
downloadcpython-ebb4d946a33068778f3ea5e0e729a7e7ad8b5d12.tar.gz
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.
Diffstat (limited to 'Python/dynload_next.c')
-rw-r--r--Python/dynload_next.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/dynload_next.c b/Python/dynload_next.c
index 671b26f235..892bb47842 100644
--- a/Python/dynload_next.c
+++ b/Python/dynload_next.c
@@ -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";
}