Move __pycache__ folders to /tmp
This commit is contained in:
parent
bf05a40200
commit
a3c8f3da1c
1 changed files with 3 additions and 2 deletions
5
.profile
5
.profile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue