From 5e4c65f3253a1964d39b57b0f2f3ceac69ea781c Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 17 Aug 2017 10:46:36 -0700 Subject: [PATCH] provision: Print out the command needed to activate venv. --- tools/provision | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/provision b/tools/provision index 8de221d..7d13eac 100755 --- a/tools/provision +++ b/tools/provision @@ -1,6 +1,6 @@ #!/bin/bash -BASEDIR=`dirname $0`/.. +BASEDIR=$(dirname `dirname $0`) if [ ! -d "$BASEDIR/zulip-api-py2-venv" ]; then virtualenv $BASEDIR/zulip-api-py2-venv @@ -30,3 +30,4 @@ if [ "$RVAL" -ne 0 ]; then cp requirements.txt "$BASEDIR/zulip-api-py2-venv/installed-requirements.txt" echo "Requirements installed." fi +echo 'Success! Run `source' "$BASEDIR/zulip-api-py2-venv/bin/activate"'`' "to activate virtualenv."