瀏覽代碼

Run -update scripts in Python 3

Lutz Roeder 7 年之前
父節點
當前提交
e2f66d8246
共有 1 個文件被更改,包括 4 次插入2 次删除
  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