소스 검색

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