Don't create new venv if script/setup is run from within a venv (#88906)
This commit is contained in:
parent
6febe00516
commit
29b049fc57
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ fi
|
||||||
|
|
||||||
mkdir -p config
|
mkdir -p config
|
||||||
|
|
||||||
if [ ! -n "$DEVCONTAINER" ];then
|
if [ ! -n "$DEVCONTAINER" ] && [ ! -n "$VIRTUAL_ENV" ];then
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue