From 29b049fc57902b20a6e6db9c0c85b798fb5ba23c Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 1 Mar 2023 11:11:29 +0100 Subject: [PATCH] Don't create new venv if script/setup is run from within a venv (#88906) --- script/setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/setup b/script/setup index 9df3fdb25d8..782eb510654 100755 --- a/script/setup +++ b/script/setup @@ -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 \ No newline at end of file +fi