Move __pycache__ folders to /tmp

This commit is contained in:
Alexander Hess 2024-06-21 01:21:30 +02:00
parent bf05a40200
commit a3c8f3da1c
Signed by: alexander
GPG key ID: 344EA5AB10D868E0

View file

@ -43,8 +43,9 @@ export REPOS="$HOME/Repositories"
# Python-specific configs # Python-specific configs
export PIPX_BIN_DIR=$XDG_BIN_HOME export PIPX_BIN_DIR=$XDG_BIN_HOME
export PYENV_ROOT="$HOME/.pyenv" export PYENV_ROOT="$HOME/.pyenv"
# No need for *.pyc files on a dev machine # No need for *.pyc files (and __pycache__ folders) to be within project folders
export PYTHONDONTWRITEBYTECODE=1 # Note: `export PYTHONDONTWRITEBYTECODE=1` would disable them entirely
export PYTHONPYCACHEPREFIX=/tmp/pycache
# Put local binaries on the $PATH # Put local binaries on the $PATH