/
githubmirror
/
cpython
Обзор
Документация
Войти
/
githubmirror
/
cpython
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
3.9
Python/dynload_dl.c
22 строки
581 B
Steve Dower
Issue #24268: Fix import naming when loading extension modules. Patch by Petr Viktorin.
24 май 2015, 00:13
24 май 2015, 00:13
adc2fb8
Код
Авторство
О чём код?
/* 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_FindSharedFuncptr(const char *prefix, const char *shortname, const char *pathname, FILE *fp) { char funcname[258]; PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname); return dl_loadmod(Py_GetProgramName(), pathname, funcname); }