[New-bugs-announce] [issue31451] PYTHONHOME is not absolutized
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.
title: PYTHONHOME is not absolutized
versions: Python 2.7, Python 3.6, Python 3.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce