diff options
author | Steve Dower <steve.dower@microsoft.com> | 2018-11-18 04:41:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-18 04:41:48 (GMT) |
commit | 177a41a07b7d13c70d068ea0962f07e625ae171e (patch) | |
tree | 1f698c35899360fe3b73bc90b9556871b35813a0 /Include/pylifecycle.h | |
parent | 689d555ec135d4115574addd063c358ac4897cc4 (diff) | |
download | cpython-177a41a07b7d13c70d068ea0962f07e625ae171e.zip cpython-177a41a07b7d13c70d068ea0962f07e625ae171e.tar.gz cpython-177a41a07b7d13c70d068ea0962f07e625ae171e.tar.bz2 |
bpo-34725: Adds _Py_SetProgramFullPath so embedders may override sys.executable (GH-9860)
Diffstat (limited to 'Include/pylifecycle.h')
-rw-r--r-- | Include/pylifecycle.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Include/pylifecycle.h b/Include/pylifecycle.h index 7d383aa..93fb26b 100644 --- a/Include/pylifecycle.h +++ b/Include/pylifecycle.h @@ -7,12 +7,6 @@ extern "C" { #endif -PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *); -PyAPI_FUNC(wchar_t *) Py_GetProgramName(void); - -PyAPI_FUNC(void) Py_SetPythonHome(const wchar_t *); -PyAPI_FUNC(wchar_t *) Py_GetPythonHome(void); - #ifndef Py_LIMITED_API /* Only used by applications that embed the interpreter and need to * override the standard encoding determination mechanism @@ -83,8 +77,18 @@ PyAPI_FUNC(int) Py_FdIsInteractive(FILE *, const char *); /* Bootstrap __main__ (defined in Modules/main.c) */ PyAPI_FUNC(int) Py_Main(int argc, wchar_t **argv); -/* In getpath.c */ +/* In pathconfig.c */ +PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *); +PyAPI_FUNC(wchar_t *) Py_GetProgramName(void); + +PyAPI_FUNC(void) Py_SetPythonHome(const wchar_t *); +PyAPI_FUNC(wchar_t *) Py_GetPythonHome(void); + +#ifndef Py_LIMITED_API +PyAPI_FUNC(void) _Py_SetProgramFullPath(const wchar_t *); +#endif PyAPI_FUNC(wchar_t *) Py_GetProgramFullPath(void); + PyAPI_FUNC(wchar_t *) Py_GetPrefix(void); PyAPI_FUNC(wchar_t *) Py_GetExecPrefix(void); PyAPI_FUNC(wchar_t *) Py_GetPath(void); |