diff options
author | Guido van Rossum <guido@python.org> | 1996-04-09 02:39:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-04-09 02:39:59 (GMT) |
commit | a5a3db70d445b0cf9064c76d9946dcde18fb775e (patch) | |
tree | 2b13e6d6a04ee30021cb39149709ad0239d2c808 /Python | |
parent | e71a947f8e0cb165979769076eb24d7d20a7ce24 (diff) | |
download | cpython-a5a3db70d445b0cf9064c76d9946dcde18fb775e.zip cpython-a5a3db70d445b0cf9064c76d9946dcde18fb775e.tar.gz cpython-a5a3db70d445b0cf9064c76d9946dcde18fb775e.tar.bz2 |
Under NT, interface to mysterious module registry. (Mark H.)
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)) { |