From a5a3db70d445b0cf9064c76d9946dcde18fb775e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 9 Apr 1996 02:39:59 +0000 Subject: Under NT, interface to mysterious module registry. (Mark H.) --- Python/import.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Python') 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)) { -- cgit v1.2.1