Title: PYTHONHOME is not absolutized
Type: behavior Stage:
Components: Versions: Python 3.7, Python 3.6, Python 2.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: xiang.zhang
Priority: normal Keywords:

Created on 2017-09-13 14:05 by xiang.zhang, last changed 2017-09-13 14:05 by xiang.zhang.

Messages (1)
msg302077 - (view) Author: Xiang Zhang (xiang.zhang) * (Python committer) Date: 2017-09-13 14:05
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  Maybe PYTHONHOME should be too? Or it's by design.
Date User Action Args
2017-09-13 14:05:51xiang.zhangcreate