source: trunk/essentials/dev-lang/python/PC/import_nt.c@ 3393

Last change on this file since 3393 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 2.4 KB
Line 
1/********************************************************************
2
3 import_nt.c
4
5 Win32 specific import code.
6
7*/
8
9#include "Python.h"
10#include "osdefs.h"
11#include <windows.h>
12#include "importdl.h"
13#include "malloc.h" /* for alloca */
14
15/* a string loaded from the DLL at startup */
16extern const char *PyWin_DLLVersionString;
17
18FILE *PyWin_FindRegisteredModule(const char *moduleName,
19 struct filedescr **ppFileDesc,
20 char *pathBuf,
21 Py_ssize_t pathLen)
22{
23 char *moduleKey;
24 const char keyPrefix[] = "Software\\Python\\PythonCore\\";
25 const char keySuffix[] = "\\Modules\\";
26#ifdef _DEBUG
27 /* In debugging builds, we _must_ have the debug version
28 * registered.
29 */
30 const char debugString[] = "\\Debug";