Under NT, interface to mysterious module registry. (Mark H.)
This commit is contained in:
parent
e71a947f8e
commit
a5a3db70d4
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue