diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c index f2e8edc..18968d0 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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)) { |