]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Use PYTHON3 variable instead of PYTHON_HOME
authorYunhua Feng <yunhuax.feng@intel.com>
Tue, 25 Sep 2018 04:25:30 +0000 (12:25 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Sat, 13 Oct 2018 01:57:15 +0000 (09:57 +0800)
Use PYTHON3 variable instead of PYTHON_HOME path

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Bin/CYGWIN_NT-5.1-i686/Ecc
BaseTools/Bin/CYGWIN_NT-5.1-i686/GenDepex
BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFds
BaseTools/Bin/CYGWIN_NT-5.1-i686/TargetTool
BaseTools/Bin/CYGWIN_NT-5.1-i686/Trim
BaseTools/Bin/CYGWIN_NT-5.1-i686/build

index 214d88fff1b15a998a523628d97ecbb8d93a2e1a..0b173eb33c68ecdbc0169c3e054b75a2772349a1 100755 (executable)
@@ -1,9 +1,9 @@
 #!/usr/bin/env bash
 #python `dirname $0`/RunToolFromSource.py `basename $0` $*
 
-# If a python2 command is available, use it in preference to python
-if command -v python2 >/dev/null 2>&1; then
-    python_exe=python2
+# If a $PYTHON3 command is available, use it in preference to python
+if command -v $PYTHON3 >/dev/null 2>&1; then
+    python_exe=$PYTHON3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
index 214d88fff1b15a998a523628d97ecbb8d93a2e1a..0b173eb33c68ecdbc0169c3e054b75a2772349a1 100755 (executable)
@@ -1,9 +1,9 @@
 #!/usr/bin/env bash
 #python `dirname $0`/RunToolFromSource.py `basename $0` $*
 
-# If a python2 command is available, use it in preference to python
-if command -v python2 >/dev/null 2>&1; then
-    python_exe=python2
+# If a $PYTHON3 command is available, use it in preference to python
+if command -v $PYTHON3 >/dev/null 2>&1; then
+    python_exe=$PYTHON3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
index 214d88fff1b15a998a523628d97ecbb8d93a2e1a..0b173eb33c68ecdbc0169c3e054b75a2772349a1 100755 (executable)
@@ -1,9 +1,9 @@
 #!/usr/bin/env bash
 #python `dirname $0`/RunToolFromSource.py `basename $0` $*
 
-# If a python2 command is available, use it in preference to python
-if command -v python2 >/dev/null 2>&1; then
-    python_exe=python2
+# If a $PYTHON3 command is available, use it in preference to python
+if command -v $PYTHON3 >/dev/null 2>&1; then
+    python_exe=$PYTHON3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
index 214d88fff1b15a998a523628d97ecbb8d93a2e1a..0b173eb33c68ecdbc0169c3e054b75a2772349a1 100755 (executable)
@@ -1,9 +1,9 @@
 #!/usr/bin/env bash
 #python `dirname $0`/RunToolFromSource.py `basename $0` $*
 
-# If a python2 command is available, use it in preference to python
-if command -v python2 >/dev/null 2>&1; then
-    python_exe=python2
+# If a $PYTHON3 command is available, use it in preference to python
+if command -v $PYTHON3 >/dev/null 2>&1; then
+    python_exe=$PYTHON3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
index 7cac4f7c4fff29fbb4981a25c4492d38317a1fca..736ff12f14aedac476a18d5a69b8d8d077fa6014 100755 (executable)
@@ -1,9 +1,9 @@
 #!/usr/bin/env bash
 #python `dirname $0`/RunToolFromSource.py `basename $0` $*
 
-# If a python2 command is available, use it in preference to python
-if command -v python2 >/dev/null 2>&1; then
-    python_exe=python2
+# If a $PYTHON3 command is available, use it in preference to python
+if command -v $PYTHON3 >/dev/null 2>&1; then
+    python_exe=$PYTHON3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
index 214d88fff1b15a998a523628d97ecbb8d93a2e1a..0b173eb33c68ecdbc0169c3e054b75a2772349a1 100755 (executable)
@@ -1,9 +1,9 @@
 #!/usr/bin/env bash
 #python `dirname $0`/RunToolFromSource.py `basename $0` $*
 
-# If a python2 command is available, use it in preference to python
-if command -v python2 >/dev/null 2>&1; then
-    python_exe=python2
+# If a $PYTHON3 command is available, use it in preference to python
+if command -v $PYTHON3 >/dev/null 2>&1; then
+    python_exe=$PYTHON3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here