Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5a3db7

Browse files
committed
Under NT, interface to mysterious module registry. (Mark H.)
1 parent e71a947 commit a5a3db7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Python/import.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,14 @@ find_module(name, path, buf, buflen, p_fp)
413413
struct filedescr *fdp;
414414
FILE *fp = NULL;
415415

416+
#ifdef NT
417+
if ((fp=PyWin_FindRegisteredModule(name, &fdp, buf, buflen))!=NULL) {
418+
*p_fp = fp;
419+
return fdp;
420+
}
421+
#endif
422+
423+
416424
if (path == NULL)
417425
path = sysget("path");
418426
if (path == NULL || !is_listobject(path)) {

0 commit comments

Comments
 (0)