summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-04-09 02:39:59 (GMT)
committerGuido van Rossum <guido@python.org>1996-04-09 02:39:59 (GMT)
commita5a3db70d445b0cf9064c76d9946dcde18fb775e (patch)
tree2b13e6d6a04ee30021cb39149709ad0239d2c808 /Python
parente71a947f8e0cb165979769076eb24d7d20a7ce24 (diff)
downloadcpython-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.c8
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)) {