summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-11-25 02:17:57 (GMT)
committerGitHub <noreply@github.com>2017-11-25 02:17:57 (GMT)
commit9316ee4da2dcc217351418fc4dbe9205995689e0 (patch)
tree6c292be4738bdc93ff647113bba6a4cb664da352 /Include
parent706cb3162e15271ecfeba15909ed48a3a437009f (diff)
downloadcpython-9316ee4da2dcc217351418fc4dbe9205995689e0.zip
cpython-9316ee4da2dcc217351418fc4dbe9205995689e0.tar.gz
cpython-9316ee4da2dcc217351418fc4dbe9205995689e0.tar.bz2
bpo-32030: Add _PyPathConfig_Init() (#4551)
* Add _PyPathConfig_Init() and _PyPathConfig_Fini() * Remove _Py_GetPathWithConfig() * _PyPathConfig_Init() returns _PyInitError to allow to handle errors properly * Add pathconfig_clear() * Windows calculate_path_impl(): replace Py_FatalError() with _PyInitError * Py_FinalizeEx() now calls _PyPathConfig_Fini() to release memory * Fix _Py_InitializeMainInterpreter() regression: don't initialize path config if _disable_importlib is false * PyPathConfig now uses dynamically allocated memory
Diffstat (limited to 'Include')
-rw-r--r--Include/pylifecycle.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/pylifecycle.h b/Include/pylifecycle.h
index ff91532..d32c98b 100644
--- a/Include/pylifecycle.h
+++ b/Include/pylifecycle.h
@@ -103,8 +103,9 @@ PyAPI_FUNC(wchar_t *) Py_GetPrefix(void);
PyAPI_FUNC(wchar_t *) Py_GetExecPrefix(void);
PyAPI_FUNC(wchar_t *) Py_GetPath(void);
#ifdef Py_BUILD_CORE
-PyAPI_FUNC(wchar_t *) _Py_GetPathWithConfig(
- const _PyMainInterpreterConfig *config);
+PyAPI_FUNC(_PyInitError) _PyPathConfig_Init(
+ const _PyMainInterpreterConfig *main_config);
+PyAPI_FUNC(void) _PyPathConfig_Fini(void);
#endif
PyAPI_FUNC(void) Py_SetPath(const wchar_t *);
#ifdef MS_WINDOWS