Skip to content
/ ve Public
forked from erning/ve

Executes command in the current context of virtualenv

Notifications You must be signed in to change notification settings

anjuke/ve

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 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 "https://raw.github.com/erning/ve/master/ve" -o "$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

Languages

  • Shell 100.0%