mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +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`
|
||||
if [ -z "$VIRTUAL_ENV" ] && [ -f $DIR/../venv.mitmproxy/bin/activate ]; then
|
||||
DIR="${0%/*}"
|
||||
if [ -z "$VIRTUAL_ENV" ] && [ -f "$DIR/../venv.mitmproxy/bin/activate" ]; then
|
||||
echo "Activating mitmproxy virtualenv..."
|
||||
source $DIR/../venv.mitmproxy/bin/activate
|
||||
source "$DIR/../venv.mitmproxy/bin/activate"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user