Don't create new venv if script/setup is run from within a venv (#88906)

This commit is contained in:
Erik Montnemery 2023-03-01 11:11:29 +01:00 committed by GitHub
parent 6febe00516
commit 29b049fc57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ fi
mkdir -p config
if [ ! -n "$DEVCONTAINER" ];then
if [ ! -n "$DEVCONTAINER" ] && [ ! -n "$VIRTUAL_ENV" ];then
python3 -m venv venv
source venv/bin/activate
fi
@ -36,4 +36,4 @@ logger:
logs:
homeassistant.components.cloud: debug
" >> config/configuration.yaml
fi
fi