2015-09-01 16:58:18 +00:00
|
|
|
DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
|
|
|
ACTIVATE_DIR="$(if [ -f "$DIR/../venv.mitmproxy/bin/activate" ]; then echo 'bin'; else echo 'Scripts'; fi;)"
|
|
|
|
if [ -z "$VIRTUAL_ENV" ] && [ -f "$DIR/../venv.mitmproxy/$ACTIVATE_DIR/activate" ]; then
|
2015-04-11 22:26:09 +00:00
|
|
|
echo "Activating mitmproxy virtualenv..."
|
2015-09-01 16:58:18 +00:00
|
|
|
source "$DIR/../venv.mitmproxy/$ACTIVATE_DIR/activate"
|
2015-04-11 22:26:09 +00:00
|
|
|
fi
|