mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Update run-in-env.sh (#36577)
This commit is contained in:
parent
1d01a5ed7b
commit
b916eb6cf2
@ -9,10 +9,12 @@ if [ -s .python-version ]; then
|
||||
fi
|
||||
|
||||
# other common virtualenvs
|
||||
my_path=$(git rev-parse --show-toplevel)
|
||||
|
||||
for venv in venv .venv .; do
|
||||
if [ -f $venv/bin/activate ]; then
|
||||
. $venv/bin/activate
|
||||
fi
|
||||
if [ -f "${my_path}/${venv}/bin/activate" ]; then
|
||||
. "${my_path}/${venv}/bin/activate"
|
||||
fi
|
||||
done
|
||||
|
||||
exec "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user