Fix autoenv add=py .enter when run in subdirectory

This commit is contained in:
Kenneth Benzie 2022-03-22 13:26:32 +00:00
parent a362ab0e04
commit 74f2dd7dae

View File

@ -98,7 +98,7 @@ commands:
fi fi
_autoenv_exit $PWD _autoenv_exit $PWD
virtualenv .local virtualenv .local
echo 'source .local/bin/activate' >> .enter echo 'source ${0:a:h}/.local/bin/activate' >> .enter
echo 'deactivate' >> .exit echo 'deactivate' >> .exit
_autoenv_authorized $PWD/.enter yes _autoenv_authorized $PWD/.enter yes
_autoenv_authorized $PWD/.exit yes _autoenv_authorized $PWD/.exit yes