Explorar el Código

Run -update scripts in Python 3

Lutz Roeder hace 7 años
padre
commit
e2f66d8246
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      tools/update

+ 4 - 2
tools/update

@@ -2,8 +2,10 @@
 
 set -e
 
-# export python=python3
-# export pip=pip3
+if [ $(which python3) ] && [ $(which pip3) ]; then
+    export python=python3
+    export pip=pip3
+fi
 
 root=$(cd $(dirname ${0})/..; pwd)
 tools=${root}/tools