Under NT, interface to mysterious module registry. (Mark H.)

This commit is contained in:
Guido van Rossum 1996-04-09 02:39:59 +00:00
parent e71a947f8e
commit a5a3db70d4
1 changed files with 8 additions and 0 deletions

View 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)) {