Run shell for virtual environment.
Install from PyPI:
python3 -m pip install --user dephell_shells
from pathlib import Path
from dephell_shells import Shells
shells = Shells(bin_path=Path('/home/gram/.../dephell-nLn6/bin'))
shells.current
# ZshShell(bin_path=Path('/home/gram/.../dephell-nLn6'), shell_path=Path('/usr/bin/zsh'))
shells.current.run()
Show current shell path:
$ python3 -m dephell_shells
/bin/zsh
Actiavate venv:
$ python3.7 -m dephell_shells ./venv/bin