From e77c5694a32d1ba8b70127410b4c26cb12e994d2 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Thu, 29 Nov 2018 00:02:50 -0500 Subject: linux setup supports both python 2 and 3 side-by-side now --- scripts/linux-setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/linux-setup.sh') diff --git a/scripts/linux-setup.sh b/scripts/linux-setup.sh index 30b7e6c3..4c9be22e 100755 --- a/scripts/linux-setup.sh +++ b/scripts/linux-setup.sh @@ -67,10 +67,12 @@ pythonpath() echo Configuring python path if [ "$USERINTERACTIVE" == "true" ] then - ${SUDO}python ${BNPATH}/scripts/install_api.py $ROOT + SILENT="-s" else - ${SUDO}python ${BNPATH}/scripts/install_api.py $ROOT -s + SILENT="" fi + python -V >/dev/null 2>&1 && ${SUDO}python ${BNPATH}/scripts/install_api.py ${ROOT} ${SILENT} + python3 -V >/dev/null 2>&1 && ${SUDO}python3 ${BNPATH}/scripts/install_api.py ${ROOT} ${SILENT} } createdesktopfile() -- cgit v1.3.1