mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 07:58:09 +01:00
14 lines
221 B
Bash
14 lines
221 B
Bash
|
#!/usr/bin/env sh
|
||
|
set -eu
|
||
|
|
||
|
my_path=$(git rev-parse --show-toplevel)
|
||
|
|
||
|
for venv in venv .venv .; do
|
||
|
if [ -f "${my_path}/${venv}/bin/activate" ]; then
|
||
|
. "${my_path}/${venv}/bin/activate"
|
||
|
break
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
exec "$@"
|