mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Don't create new venv if script/setup is run from within a venv (#88906)
This commit is contained in:
parent
6febe00516
commit
29b049fc57
@ -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
|
||||||
@ -36,4 +36,4 @@ logger:
|
|||||||
logs:
|
logs:
|
||||||
homeassistant.components.cloud: debug
|
homeassistant.components.cloud: debug
|
||||||
" >> config/configuration.yaml
|
" >> config/configuration.yaml
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user