mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-07 15:43:54 +02:00
skip virtualenv check if already activated (#863)
This allows the user to choose their virtualenv method, e.g. [Pipenv](https://docs.pipenv.org/).
This commit is contained in:
parent
e78df40468
commit
f585a416df
1 changed files with 9 additions and 6 deletions
15
algo
15
algo
|
@ -2,13 +2,16 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
ACTIVATE_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/env/bin/activate"
|
if [ -z ${VIRTUAL_ENV+x} ]
|
||||||
if [ -f "$ACTIVATE_SCRIPT" ]
|
|
||||||
then
|
then
|
||||||
source $ACTIVATE_SCRIPT
|
ACTIVATE_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/env/bin/activate"
|
||||||
else
|
if [ -f "$ACTIVATE_SCRIPT" ]
|
||||||
echo "$ACTIVATE_SCRIPT not found. Did you follow documentation to install dependencies?"
|
then
|
||||||
exit 1
|
source $ACTIVATE_SCRIPT
|
||||||
|
else
|
||||||
|
echo "$ACTIVATE_SCRIPT not found. Did you follow documentation to install dependencies?"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SKIP_TAGS="_null encrypted"
|
SKIP_TAGS="_null encrypted"
|
||||||
|
|
Loading…
Add table
Reference in a new issue