Mercurial > cpython-lru_cache-weakref
diff Python/dynload_next.c @ 21276:28f4cea209d7 legacy-trunk
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.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Thu, 06 Dec 2001 22:58:56 +0000 |
| parents | 379fc66f4c96 |
| children | fb79cc2630c1 20bc4ff1215c |
line wrap: on
line diff
--- a/Python/dynload_next.c Thu Dec 06 22:36:17 2001 +0000 +++ b/Python/dynload_next.c Thu Dec 06 22:58:56 2001 +0000 @@ -148,7 +148,8 @@ 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"; }
