aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/runtime_py3/main/venv.cpp
Commit message (Collapse)AuthorAgeFilesLines
* add ydb depsnkozlovskiy2023-09-291-0/+6
|
* fix ya.makemonster2022-07-071-6/+0
|
* DEVTOOLSSUPPORT-18626: In venv directly call Py_BytesMain()say2022-05-041-0/+6
The arcadia main function (library/python/runtime_py3/main/main.c::pymain) calls Py_InitializeFromConfig() before going to the vanilla python Py_Main(). Py_InitializeFromConfig() overrides sys.prefix and sys.exec_prefix by default values ('/var/empty') and then import __res module (and importer.pxi as a part of it). importer.pxi::_init_venv() set a proper value to sys.prefix and sys.exec_prefix attributes. Py_Main() in turn also calls Py_InitializeFromConfig() and reset the sys attributes to their default values again. I don't know why it was not a problem in python 3.9 but in 3.10 it is. ref:0466de641f92d66c4f992ae12c02d8d58db397f6