Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 3492:08130f00c18d legacy-trunk
Under NT, interface to mysterious module registry. (Mark H.)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 09 Apr 1996 02:39:59 +0000 |
| parents | 27406c36e8bd |
| children | cee4a6d8415e |
line wrap: on
line diff
--- a/Python/import.c Tue Apr 09 02:39:15 1996 +0000 +++ b/Python/import.c Tue Apr 09 02:39:59 1996 +0000 @@ -413,6 +413,14 @@ 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)) {
