Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #189 from alphagov/dont-overwrite-virtualenv
Browse files Browse the repository at this point in the history
Don't overwrite the virtualenv if exists
  • Loading branch information
jabley committed Dec 10, 2013
2 parents 15ab6ef + 0a08fe7 commit 48d386c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion start-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

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

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

source "$venvdir/bin/activate"

Expand Down

0 comments on commit 48d386c

Please sign in to comment.