mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Merge pull request #591 from Kriechi/autoenv-improvements
improve autoenv script
This commit is contained in:
commit
98bc983dab
6
.env
6
.env
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user