Merge pull request #591 from Kriechi/autoenv-improvements

improve autoenv script
This commit is contained in:
Maximilian Hils 2015-05-21 13:28:31 +02:00
commit 98bc983dab

6
.env
View File

@ -1,5 +1,5 @@
DIR=`dirname $0` DIR="${0%/*}"
if [ -z "$VIRTUAL_ENV" ] && [ -f $DIR/../venv.mitmproxy/bin/activate ]; then if [ -z "$VIRTUAL_ENV" ] && [ -f "$DIR/../venv.mitmproxy/bin/activate" ]; then
echo "Activating mitmproxy virtualenv..." echo "Activating mitmproxy virtualenv..."
source $DIR/../venv.mitmproxy/bin/activate source "$DIR/../venv.mitmproxy/bin/activate"
fi fi