Skip to main content

activate virtual environment for current shell

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dephell_shells-0.1.5.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

dephell_shells-0.1.5-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page