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 <rep...@bugs.python.org> <https://bugs.python.org/issue31451> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com