diff options
Diffstat (limited to 'scripts/linux-setup.sh')
| -rwxr-xr-x | scripts/linux-setup.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/linux-setup.sh b/scripts/linux-setup.sh index c0e3697f..c6e376ce 100755 --- a/scripts/linux-setup.sh +++ b/scripts/linux-setup.sh @@ -61,7 +61,12 @@ lastrun() pythonpath() { echo Configuring python path - ${SUDO}python ${BNPATH}/scripts/install_api.py $ROOT + if [[ $(python -V) == "Python 3."* ]] + then + ${SUDO}python2 ${BNPATH}/scripts/install_api.py $ROOT + else + ${SUDO}python ${BNPATH}/scripts/install_api.py $ROOT + fi } createdesktopfile() |
