[issue42032] Setting PYTHONPYCACHEPREFIX using ~ (tilde) creates a "~" folder

2020-10-14 Thread Veronica Olsen
Veronica Olsen added the comment: > AFAIK, tilde expansion is entirely up to your shell rather than Python Yes, I am uncertain what exactly is going on here. Whatever ends up in the sys.pycache_prefix variable is different with the same environment variable setting on the two systems.

[issue42032] Setting PYTHONPYCACHEPREFIX using ~ (tilde) creates a "~" folder

2020-10-14 Thread Veronica Olsen
Veronica Olsen added the comment: Correction: The pycache is in fact redirected to the new '~' folder. In any case, I tested a bit on Debian Bullseye (Python 3.8.6) and Ubuntu 20.04 (Python 3.8.5) and it seems ~ is not expanded in the environment variable Debian. I'm a little

[issue42032] Setting PYTHONPYCACHEPREFIX using ~ (tilde) creates a "~" folder

2020-10-14 Thread Veronica Olsen
New submission from Veronica Olsen : On Debian Bullseye (testing): Setting export PYTHONPYCACHEPREFIX=~/.pycache has previously worked. With Python 3.8.6, this still works in practice, when running python code (the pycache is still redirected), but during initialisation, the python3