mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-05 12:17:21 +00:00
Add an autoenv file to auto-activate the virtualenv
See https://github.com/kennethreitz/autoenv
This commit is contained in:
parent
8e2e83a3c6
commit
fb0a5d8f63
2 changed files with 9 additions and 0 deletions
5
.env
Normal file
5
.env
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
DIR=`dirname $0`
|
||||
if [ -z "$VIRTUAL_ENV" ] && [ -f $DIR/../venv.mitmproxy/bin/activate ]; then
|
||||
echo "Activating mitmproxy virtualenv..."
|
||||
source $DIR/../venv.mitmproxy/bin/activate
|
||||
fi
|
||||
|
|
@ -75,6 +75,10 @@ command:
|
|||
|
||||
```$ mitmdump --version```
|
||||
|
||||
For convenience, the project includes an
|
||||
[autoenv](https://github.com/kennethreitz/autoenv) file
|
||||
([.env](https://github.com/mitmproxy/mitmproxy/blob/master/.env)) that
|
||||
auto-activates the virtualenv when you cd into the mitmproxy directory.
|
||||
|
||||
|
||||
### Testing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue