diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2007-11-18 11:56:28 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2007-11-18 11:56:28 (GMT) |
commit | 327a39b047e3abcecb08aabe4f4fcb683dd06ef5 (patch) | |
tree | 07bee72fac09745a9f7309c7b297d4c7e200f658 /Include | |
parent | 5cf449cfb286465cb9b5248dded4fcf96da6cba3 (diff) | |
download | cpython-327a39b047e3abcecb08aabe4f4fcb683dd06ef5.zip cpython-327a39b047e3abcecb08aabe4f4fcb683dd06ef5.tar.gz cpython-327a39b047e3abcecb08aabe4f4fcb683dd06ef5.tar.bz2 |
Patch #1739468: Directories and zipfiles containing __main__.py are now executable
Diffstat (limited to 'Include')
-rw-r--r-- | Include/import.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/import.h b/Include/import.h index 414e059..af9f339 100644 --- a/Include/import.h +++ b/Include/import.h @@ -24,6 +24,7 @@ PyAPI_FUNC(PyObject *) PyImport_ImportModuleEx( #define PyImport_ImportModuleEx(n, g, l, f) \ PyImport_ImportModuleLevel(n, g, l, f, -1) +PyAPI_FUNC(PyObject *) PyImport_GetImporter(PyObject *path); PyAPI_FUNC(PyObject *) PyImport_Import(PyObject *name); PyAPI_FUNC(PyObject *) PyImport_ReloadModule(PyObject *m); PyAPI_FUNC(void) PyImport_Cleanup(void); @@ -42,6 +43,7 @@ struct _inittab { void (*initfunc)(void); }; +PyAPI_DATA(PyTypeObject) PyNullImporter_Type; PyAPI_DATA(struct _inittab *) PyImport_Inittab; PyAPI_FUNC(int) PyImport_AppendInittab(char *name, void (*initfunc)(void)); |