Staging
v0.5.1
https://github.com/python/cpython
Revision b46fe797355d21fbf5c091abf25a0d9145976e5d authored by Richard Oudkerk on 15 October 2013, 15:48:51 UTC, committed by Richard Oudkerk on 15 October 2013, 15:48:51 UTC
1 parent c3a9b35
Raw File
Tip revision: b46fe797355d21fbf5c091abf25a0d9145976e5d authored by Richard Oudkerk on 15 October 2013, 15:48:51 UTC
Print process instead of pid.
Tip revision: b46fe79
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 char *_PyImport_DynLoadFiletab[] = {".o", NULL};


dl_funcptr _PyImport_GetDynLoadFunc(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);
}
back to top