From a3c8f3da1cb3520c55b8ff79ac379d848523b70e Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Fri, 21 Jun 2024 01:21:30 +0200 Subject: [PATCH] Move __pycache__ folders to /tmp --- .profile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.profile b/.profile index 5a0a925..230ac52 100644 --- a/.profile +++ b/.profile @@ -43,8 +43,9 @@ export REPOS="$HOME/Repositories" # Python-specific configs export PIPX_BIN_DIR=$XDG_BIN_HOME export PYENV_ROOT="$HOME/.pyenv" -# No need for *.pyc files on a dev machine -export PYTHONDONTWRITEBYTECODE=1 +# No need for *.pyc files (and __pycache__ folders) to be within project folders +# Note: `export PYTHONDONTWRITEBYTECODE=1` would disable them entirely +export PYTHONPYCACHEPREFIX=/tmp/pycache # Put local binaries on the $PATH