diff options
| author | Guido van Rossum <guido@python.org> | 1998-02-06 22:28:05 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1998-02-06 22:28:05 +0000 |
| commit | 2b710a429915f61c4bc1b129375a6c50797a0a9f (patch) | |
| tree | fcc01591374e81c11a3ff94cc8957a311388f115 /Include/pythonrun.h | |
| parent | b485285e829bed8d9f4a9ab9b908d72836f1bc8c (diff) | |
| download | cpython-2b710a429915f61c4bc1b129375a6c50797a0a9f.tar.gz | |
- Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allow
embedders to force a different PYTHONHOME.
- Add new interface PyErr_PrintEx(flag); same as PyErr_Print() but
flag determines whether sys.last_* are set or not. PyErr_Print()
now simply calls PyErr_PrintEx(1).
Diffstat (limited to 'Include/pythonrun.h')
| -rw-r--r-- | Include/pythonrun.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h index a41d46a884..192c259c89 100644 --- a/Include/pythonrun.h +++ b/Include/pythonrun.h @@ -40,6 +40,9 @@ PERFORMANCE OF THIS SOFTWARE. void Py_SetProgramName Py_PROTO((char *)); char *Py_GetProgramName Py_PROTO((void)); +void Py_SetPythonHome Py_PROTO((char *)); +char *Py_GetPythonHome Py_PROTO((void)); + void Py_Initialize Py_PROTO((void)); void Py_Finalize Py_PROTO((void)); int Py_IsInitialized Py_PROTO((void)); @@ -62,6 +65,7 @@ PyObject *PyRun_File Py_PROTO((FILE *, char *, int, PyObject *, PyObject *)); PyObject *Py_CompileString Py_PROTO((char *, char *, int)); void PyErr_Print Py_PROTO((void)); +void PyErr_PrintEx Py_PROTO((int)); int Py_AtExit Py_PROTO((void (*func) Py_PROTO((void)))); |
