Add a check to see if virtualenv is installed.
This commit is contained in:
parent
97c6d7ed25
commit
951fe2f7ed
2
dev
2
dev
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
VENV=../venv.mitmproxy
|
VENV=../venv.mitmproxy
|
||||||
|
|
||||||
virtualenv $VENV
|
virtualenv $VENV || { echo 'virtualenv is not installed. Exiting.' ; exit 1; }
|
||||||
source $VENV/bin/activate
|
source $VENV/bin/activate
|
||||||
pip install --src .. -r requirements.txt
|
pip install --src .. -r requirements.txt
|
||||||
|
|
||||||
|
|
2
dev.bat
2
dev.bat
|
@ -1,7 +1,7 @@
|
||||||
@echo off
|
@echo off
|
||||||
set VENV=..\venv.mitmproxy
|
set VENV=..\venv.mitmproxy
|
||||||
|
|
||||||
virtualenv %VENV%
|
virtualenv %VENV% || echo virtualenv is not installed. Exiting.
|
||||||
call %VENV%\Scripts\activate.bat
|
call %VENV%\Scripts\activate.bat
|
||||||
pip install --src .. -r requirements.txt
|
pip install --src .. -r requirements.txt
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue