Detect which python3 to use based on .python-version
file (created by pyenv) anf fallback to python3
in $PATH
ie if vault_save.py
is in ~/bin/ try to get
~/bin/'python-version` if it exists if will be used to execute the current Python file.
So if your $PATH
is PATH=~/bin:$PATH
, you can run from anywhere vault_save.py
and it will use the pyenv
version defined in ~/bin