Skip to content

Commit 026de19

Browse files
committed
Added PyImport_ImportModuleEx(name, globals, locals, fromlist); this
is like PyImport_ImporModule(name) but receives the globals and locals dict and the fromlist arguments as well. (The name is a char*; the others are PyObject*s).
1 parent 9eb671f commit 026de19

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Include/import.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ PyObject *PyImport_ExecCodeModule Py_PROTO((char *name, PyObject *co));
4242
PyObject *PyImport_GetModuleDict Py_PROTO((void));
4343
PyObject *PyImport_AddModule Py_PROTO((char *name));
4444
PyObject *PyImport_ImportModule Py_PROTO((char *name));
45+
PyObject *PyImport_ImportModuleEx Py_PROTO((
46+
char *name, PyObject *globals, PyObject *locals, PyObject *fromlist));
4547
PyObject *PyImport_Import Py_PROTO((PyObject *name));
4648
PyObject *PyImport_ReloadModule Py_PROTO((PyObject *m));
4749
void PyImport_Cleanup Py_PROTO((void));

PC/python_nt.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ EXPORTS
211211
PyImport_GetModuleDict
212212
PyImport_GetMagicNumber
213213
PyImport_ImportModule
214+
PyImport_ImportModuleEx
215+
PyImport_Import
214216
PyImport_ImportFrozenModule
215217
PyImport_ReloadModule
216218
PyNumber_Coerce

0 commit comments

Comments
 (0)