[New-bugs-announce] [issue42032] Setting PYTHONPYCACHEPREFIX using ~ (tilde) creates a "~" folder
Veronica Olsen
report at bugs.python.org
Wed Oct 14 04:27:09 EDT 2020
New submission from Veronica Olsen <jadzia626 at gmail.com>:
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 executable creates an empty folder named "~" in the folder where the python exec or a python script is run.
Changing the environment variable to:
export PYTHONPYCACHEPREFIX=$HOME/.pycache
resolves the issue.
Expansion of ~ is of course a bit fickly in general, but
I assume this is not intended. Deleting those folders from command line is rather tricky!
----------
components: Interpreter Core
messages: 378607
nosy: vkbo
priority: normal
severity: normal
status: open
title: Setting PYTHONPYCACHEPREFIX using ~ (tilde) creates a "~" folder
type: behavior
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42032>
_______________________________________
More information about the New-bugs-announce
mailing list