Issue 31451: PYTHONHOME is not absolutized (original) (raw)

Issue31451

Created on 2017-09-13 14:05 by xiang.zhang, last changed 2022-04-11 14:58 by admin.

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 site.py. Maybe PYTHONHOME should be too? Or it's by design.
History
Date User Action Args
2022-04-11 14:58:52 admin set github: 75632
2017-09-13 14:05:51 xiang.zhang create