From: Guido van Rossum Date: Tue, 9 Apr 1996 02:39:59 +0000 (+0000) Subject: Under NT, interface to mysterious module registry. (Mark H.) X-Git-Tag: v1.4b1~250 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5a3db70d445b0cf9064c76d9946dcde18fb775e;p=python Under NT, interface to mysterious module registry. (Mark H.) --- diff --git a/Python/import.c b/Python/import.c index f2e8edca71..18968d0a0f 100644 --- a/Python/import.c +++ b/Python/import.c @@ -413,6 +413,14 @@ find_module(name, path, buf, buflen, p_fp) struct filedescr *fdp; FILE *fp = NULL; +#ifdef NT + if ((fp=PyWin_FindRegisteredModule(name, &fdp, buf, buflen))!=NULL) { + *p_fp = fp; + return fdp; + } +#endif + + if (path == NULL) path = sysget("path"); if (path == NULL || !is_listobject(path)) {