[New-bugs-announce] [issue31451] PYTHONHOME is not absolutized
Xiang Zhang
report at bugs.python.org
Wed Sep 13 10:05:51 EDT 2017
New submission from Xiang Zhang:
I find that PYTHONHOME is not absolutized even after VM initialization. So sys.prefix will be "usr" if I execute `PYTHONHOME=usr python`. This could lead to libraries like pip to fail if the current directory is changed, such as by `os.chdir`.
I am not sure this is a bug. But I see PYTHONPATH is absolutized in site.py. Maybe PYTHONHOME should be too? Or it's by design.
----------
messages: 302077
nosy: xiang.zhang
priority: normal
severity: normal
status: open
title: PYTHONHOME is not absolutized
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31451>
_______________________________________
More information about the New-bugs-announce
mailing list