]> granicus.if.org Git - python/commitdiff
Under NT, interface to mysterious module registry. (Mark H.)
authorGuido van Rossum <guido@python.org>
Tue, 9 Apr 1996 02:39:59 +0000 (02:39 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 9 Apr 1996 02:39:59 +0000 (02:39 +0000)
Python/import.c

index f2e8edca71988dc78ee0df6afc028a8666131bcb..18968d0a0fc812a639c3178ea6e533a65fcbb0f1 100644 (file)
@@ -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)) {