mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
set $PYTHONHOME in the bootstrap script, for no good reason really,
except to avoid getpath.c giving unsollicited advice on stderr.
This commit is contained in:
parent
9905b943f7
commit
a87e44792c
1 changed files with 1 additions and 0 deletions
|
@ -272,6 +272,7 @@ mainprogram = os.path.join(resdir, "%(mainprogram)s")
|
|||
|
||||
sys.argv.insert(1, mainprogram)
|
||||
os.environ["PYTHONPATH"] = resdir
|
||||
os.environ["PYTHONHOME"] = resdir
|
||||
os.environ["PYTHONEXECUTABLE"] = executable
|
||||
os.execve(executable, sys.argv, os.environ)
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue