Skip to content
/ ve Public

Executes command in the current context of virtualenv

Notifications You must be signed in to change notification settings

erning/ve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

README

ve == Virtualenv Exec

Run the command in context of the virtualenv.

$ ve <command> [agrument]...

Runs a command, providing it access to the packages in the virtualenv. While using ve you can require and call the packages installed in the virtualenv as if they were installed into the systemwide site-packages.

ve is inspired by bundle exec.

Install

Download the ve script and save to the executable search path, for instance,

curl -kL "http://git.io/ve" -o "$HOME/bin/ve" && chmod +x "$HOME/bin/ve"

Usage

Simply prefix ve to the command you're going to execute. ve will search for closest virtualenv relatived to current working directory.

By default, it checks .virtualenv directory for virtualenv in current directory. If it's not void virtualenv, it will search in the parent directory recursively.

It's possible to use another name for virtualenv directory instead of the default one. Set the environment variable VIRTUALENV_DIR to the name you prefer.

About

Executes command in the current context of virtualenv

Resources

Stars

Watchers

Forks

Packages

No packages published