diff options
author | Raymond Hettinger <python@rcn.com> | 2004-10-07 06:46:25 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-10-07 06:46:25 +0000 |
commit | 5ab85842f759c0256e7f994e6d5941de95ec340b (patch) | |
tree | c32ceb9841b00aaa3cb12f627849258311c995fb /Include/import.h | |
parent | 7ab9b4e9a42bb289e6498fa60297e0293326cc39 (diff) | |
download | cpython-5ab85842f759c0256e7f994e6d5941de95ec340b.tar.gz |
SF patch #1035498: -m option to run a module as a script
(Contributed by Nick Coghlan.)
Diffstat (limited to 'Include/import.h')
-rw-r--r-- | Include/import.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/import.h b/Include/import.h index c2c869e496..9f1c2be24a 100644 --- a/Include/import.h +++ b/Include/import.h @@ -21,6 +21,10 @@ PyAPI_FUNC(PyObject *) PyImport_ReloadModule(PyObject *m); PyAPI_FUNC(void) PyImport_Cleanup(void); PyAPI_FUNC(int) PyImport_ImportFrozenModule(char *); +PyAPI_FUNC(struct filedescr *) _PyImport_FindModule( + const char *, PyObject *, char *, size_t, FILE **, PyObject **); +PyAPI_FUNC(int) _PyImport_IsScript(struct filedescr *); + PyAPI_FUNC(PyObject *)_PyImport_FindExtension(char *, char *); PyAPI_FUNC(PyObject *)_PyImport_FixupExtension(char *, char *); |