From ffd0047afa78bfd4d6576afe1d4b8c79435b158c Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 18 Jan 2018 15:12:29 +0000 Subject: [PATCH] functions-common: Don't reguess Python versions We have already established the correct version of Python to use during installation, either automatically or through user-provided information (USE_PYTHON3, PYTHON3_VERSION). Don't do it again. Change-Id: I7bdf2be9a885994bf2c437dd104048a1ff2f6666 Closes-Bug: #1744096 --- functions-common | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/functions-common b/functions-common index df295a3395..78710deeb0 100644 --- a/functions-common +++ b/functions-common @@ -2301,12 +2301,7 @@ function install_oscwrap { function cleanup_oscwrap { local total=0 - if python3_enabled ; then - local python=python3 - else - local python=python - fi - total=$(cat $OSCWRAP_TIMER_FILE | $python -c "import sys; print(sum(int(l) for l in sys.stdin))") + total=$(cat $OSCWRAP_TIMER_FILE | $PYTHON -c "import sys; print(sum(int(l) for l in sys.stdin))") _TIME_TOTAL["osc"]=$total rm $OSCWRAP_TIMER_FILE }