mirror of
https://github.com/python/cpython.git
synced 2024-11-24 17:47:13 +01:00
99fcf15052
The getpath.py file is frozen at build time and executed as code over a namespace. It is never imported, nor is it meant to be importable or reusable. However, it should be easier to read, modify, and patch than the previous code. This commit attempts to preserve every previously tested quirk, but these may be changed in the future to better align platforms.
25 lines
606 B
C
25 lines
606 B
C
#ifndef Py_INTERNAL_PATHCONFIG_H
|
|
#define Py_INTERNAL_PATHCONFIG_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef Py_BUILD_CORE
|
|
# error "this header requires Py_BUILD_CORE define"
|
|
#endif
|
|
|
|
PyAPI_FUNC(void) _PyPathConfig_ClearGlobal(void);
|
|
extern PyStatus _PyPathConfig_ReadGlobal(PyConfig *config);
|
|
extern PyStatus _PyPathConfig_UpdateGlobal(const PyConfig *config);
|
|
extern const wchar_t * _PyPathConfig_GetGlobalModuleSearchPath(void);
|
|
|
|
extern int _PyPathConfig_ComputeSysPath0(
|
|
const PyWideStringList *argv,
|
|
PyObject **path0);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_INTERNAL_PATHCONFIG_H */
|