Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
go.sh: Remove fail in existing venv & fix check for ICEKit venv path
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurty committed Sep 15, 2016
1 parent a2a9d3d commit 7850f20
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions project_template/go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,14 @@ EOF

set -e

# Detect if this script is run within an existing virtualenv and abort
if [[ $VIRTUAL_ENV ]]; then
echo "ERROR: $0 will not work properly if run inside a venv; deactivate '`basename $VIRTUAL_ENV`'"
exit 1
fi

# Get absolute project directory from the location of this script.
# See: http://stackoverflow.com/a/4774063
export ICEKIT_PROJECT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}"); pwd -P)

export ICEKIT_VENV="$ICEKIT_PROJECT_DIR/var/venv-icekit-dev"

# Create local (non-Docker) virtualenv.
if [[ ! -d "$ICEKIT_VENV/bin/pip" ]]; then
if [[ ! -d "$ICEKIT_VENV" ]]; then
virtualenv "$ICEKIT_VENV"
fi

Expand Down

0 comments on commit 7850f20

Please sign in to comment.