Skip to content
Activate virtual environment for current shell
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dephell_shells
tests
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
appveyor.yml
pyproject.toml
requirements-flake.txt
setup.cfg

README.md

Dephell Shells

Run shell for virtual environment.

Installation

Install from PyPI:

python3 -m pip install --user dephell_shells

Usage

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()

CLI

Show current shell path:

$ python3 -m dephell_shells
/bin/zsh

Actiavate venv:

$ python3.7 -m dephell_shells ./venv/bin
You can’t perform that action at this time.