Zachary Ware <zachary.w...@gmail.com> added the comment:
AFAIK, tilde expansion is entirely up to your shell rather than Python (unless you use something like `os.path.expanduser` in your own program). A few debugging questions: 1) What version of what shell(s) do you have on each system? 2) What value do you get from `TESTVAR=~/test python3 -c 'import os;print(os.environ["TESTVAR"])'` on each system? Is it the same as `TESTVAR=~/test printenv | grep TESTVAR`? 3) What results do you get from the same tests as above, but with `TESTVAR='~/test'`? ---------- nosy: +zach.ware _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42032> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com