summaryrefslogtreecommitdiffstats
path: root/scripts/find_python.sh
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-03-23 16:11:53 +0200
committerimarom <imarom@cisco.com>2016-03-23 16:11:53 +0200
commit709eda3b4ea0385da009932df3eba457e955e887 (patch)
tree6dc28821bdd3089be9cf837400fc12ff10f66992 /scripts/find_python.sh
parente9ab260a5fa47604406e1e9432d0036dc8fd9928 (diff)
moving us to python 3 by default (console)
Diffstat (limited to 'scripts/find_python.sh')
-rwxr-xr-xscripts/find_python.sh21
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