Fixing the run script to work from crazy paths

This commit is contained in:
Ben Vanik 2012-10-10 12:21:21 -07:00
parent c59307c6d1
commit 867d43278d
1 changed files with 7 additions and 4 deletions

View File

@ -7,12 +7,15 @@
# to invoke if it notices things not quite right). # to invoke if it notices things not quite right).
DIR="$( cd "$( dirname "$0" )" && pwd )"
# Check to see if setup. # Check to see if setup.
if [ ! -d "local_virtualenv" ]; then if [ ! -d "$DIR/local_virtualenv" ]; then
echo "Missing local virtualenv - setting up..." echo "Missing local virtualenv - setting up..."
./setup-local.sh $DIR/setup-local.sh
fi fi
source local_virtualenv/bin/activate source $DIR/local_virtualenv/bin/activate
python anvil/manage.py "$@" python $DIR/anvil/manage.py "$@"