#!/bin/bash -e

venvdir=~/.virtualenvs/$(basename $(cd $(dirname $0) && pwd -P))

if [ ! -d "${venvdir}" ]; then
    virtualenv --no-site-packages "$venvdir"
fi

source "$venvdir/bin/activate"

pip install -r requirements.txt

python start.py $1 $2

#!/bin/bash -e

venvdir=~/.virtualenvs/$(basename $(cd $(dirname $0) && pwd -P))-$1-$2

if [ ! -d "${venvdir}" ]; then
    virtualenv --no-site-packages "$venvdir"
fi

source "$venvdir/bin/activate"

pip install -r requirements.txt

python start.py $1 $2

Use a different virtualenv for each backdrop app
Use a different virtualenv for each backdrop app

If backdrop_read, backdrop_write, backdrop_admin use the same virtualenv
(~/.virtualenvs/backdrop) there's a race condition the first time ``bowl
backdrop`` is called (when no virtualenv exists) as they all try to run
virtualenv and pip install at the same time.

This commit gives them all unique virtualenv directories.
