mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Reimplement addbuilddir() in C inside getpath.c, so as to execute it
at interpreter startup before importing any non-builtin modules. Should fix #9589.
This commit is contained in:
parent
09c449c7de
commit
e9b428f997
8 changed files with 53 additions and 25 deletions
|
@ -129,8 +129,9 @@ extern "C" {
|
|||
/* _Py_Mangle is defined in compile.c */
|
||||
PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name);
|
||||
|
||||
/* _Py_char2wchar lives in main.c */
|
||||
/* These functions live in main.c */
|
||||
PyAPI_FUNC(wchar_t *) _Py_char2wchar(char *);
|
||||
PyAPI_FUNC(FILE *) _Py_wfopen(const wchar_t *path, const wchar_t *mode);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue