commit | 63092343da394082840628e0a1aea02cbd062d55 | [log] [tgz] |
---|---|---|
author | Keir Mierle <keir@google.com> | Thu Jan 16 15:14:56 2020 -0800 |
committer | Keir Mierle <keir@google.com> | Thu Jan 16 15:14:56 2020 -0800 |
tree | bbfee0e391e648b90fd968403d070fac8e47bf40 | |
parent | de7c77a30e061a5f8c51b1aa86f49d2f80113e7b [diff] |
env_setup: Tweak Python 3 detection Change-Id: I73a6ebe5d6a98c7e15086d511ac2d593dc07a2c7
diff --git a/env_setup/env_setup.sh b/env_setup/env_setup.sh index e9b5859..5e53823 100644 --- a/env_setup/env_setup.sh +++ b/env_setup/env_setup.sh
@@ -38,7 +38,8 @@ SETUP_SH="$PW_ROOT/env_setup/.setup.sh" -if [ $(which python3 &> /dev/null) ]; then +# Try to use Python 3 if possible by default, before Python 2. +if which python3 &> /dev/null; then PYTHON=python3 else PYTHON=python