mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file.
This commit is contained in:
parent
07e9e380f9
commit
bd303c165b
17 changed files with 93 additions and 89 deletions
|
@ -261,7 +261,7 @@ RunMainFromImporter(wchar_t *filename)
|
|||
|
||||
/* argv0 is usable as an import source, so put it in sys.path[0]
|
||||
and import __main__ */
|
||||
sys_path = _PySys_GetObjectId(&_PyId_path);
|
||||
sys_path = PySys_GetObject("path");
|
||||
if (sys_path == NULL) {
|
||||
PyErr_SetString(PyExc_RuntimeError, "unable to get sys.path");
|
||||
goto error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue