diff options
Diffstat (limited to 'scripts/find_python.sh')
-rwxr-xr-x | scripts/find_python.sh | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/scripts/find_python.sh b/scripts/find_python.sh index aba2d936..929e873d 100755 --- a/scripts/find_python.sh +++ b/scripts/find_python.sh @@ -24,21 +24,12 @@ function find_python { exit -1 } -function find_python3 { - MACHINE_PYTHON=python3 - PYTHON3=$MACHINE_PYTHON - PCHECK=`$PYTHON3 -c "import sys; ver = sys.version_info[0] * 10 + sys.version_info[1];sys.exit(ver != 34)"` - if [ $? -eq 0 ]; then - return - fi - PYTHON3= - -} - if [ -z "$PYTHON" ]; then - find_python + # for development here - move us to python 3 for now + if [ "$USER" == "imarom" ] || [ "$USER" == "hhaim" ] || [ "$USER" == "ybrustin" ] || [ "$USER" == "ibarnea" ]; then + PYTHON=/auto/proj-pcube-b/apps/PL-b/tools/python3.4/bin/python3 + else + find_python + fi fi -if [ -z "$PYTHON3" ]; then - find_python3 -fi |