update .env
This commit is contained in:
parent
c07b9ee301
commit
a10acda80b
7
.env
7
.env
|
@ -1,5 +1,6 @@
|
||||||
DIR=`dirname $0`
|
DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
||||||
if [ -z "$VIRTUAL_ENV" ] && [ -f $DIR/../venv.mitmproxy/bin/activate ]; then
|
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
|
||||||
echo "Activating mitmproxy virtualenv..."
|
echo "Activating mitmproxy virtualenv..."
|
||||||
source $DIR/../venv.mitmproxy/bin/activate
|
source "$DIR/../venv.mitmproxy/$ACTIVATE_DIR/activate"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue