Staging
v0.5.1
Revision eee44f28a93adbf8ff0b9391ddd0e77e99bbc55f authored by Zachary Ware on 06 February 2014, 21:46:38 UTC, committed by Zachary Ware on 06 February 2014, 21:46:38 UTC
1 parent a26b3f1
Raw File
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