From 66d4b9079117ba1496ca08e8c1be22626b3bc89a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 6 Feb 1998 22:28:05 +0000 Subject: - 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). --- Include/pythonrun.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Include/pythonrun.h b/Include/pythonrun.h index a41d46a..192c259 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)))); -- cgit v0.12