Staging
v0.5.1
v0.5.1
Revision b1b25f0ffd6c2d31cf21fa7128ff64c314c3cd2e authored by Victor Stinner on 04 July 2011, 00:43:09 UTC, committed by Victor Stinner on 04 July 2011, 00:43:09 UTC
shutdown, if globals()['__file__'] is None.
1 parent 7d10a2d
dynload_dl.c
/* Support for dynamic loading of extension modules */
#include "dl.h"
#include "Python.h"
#include "importdl.h"
extern char *Py_GetProgramName(void);
const struct filedescr _PyImport_DynLoadFiletab[] = {
{".o", "rb", C_EXTENSION},
{"module.o", "rb", C_EXTENSION},
{0, 0}
};
dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
const char *pathname, FILE *fp)
{
char funcname[258];
PyOS_snprintf(funcname, sizeof(funcname), "PyInit_%.200s", shortname);
return dl_loadmod(Py_GetProgramName(), pathname, funcname);
}
Computing file changes ...