summaryrefslogtreecommitdiffstats
path: root/BaseTools/BinWrappers/PosixLike/GenerateCapsule
diff options
context:
space:
mode:
authorYunhua Feng <yunhuax.feng@intel.com>2018-09-05 17:27:05 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-10-13 09:57:14 +0800
commit04c47cd40111f85614ec51f6ba8d4e9a2f0fafde (patch)
treeb2a02b864df611726df279872f9ca4db51827f3c /BaseTools/BinWrappers/PosixLike/GenerateCapsule
parent8be15c61e88709c55970c5d5272d19bd9bba67fb (diff)
downloadedk2-04c47cd40111f85614ec51f6ba8d4e9a2f0fafde.tar.gz
edk2-04c47cd40111f85614ec51f6ba8d4e9a2f0fafde.tar.bz2
edk2-04c47cd40111f85614ec51f6ba8d4e9a2f0fafde.zip
BaseTools: Update windows and linux run scripts file to use Python3
Modify windows script, PosixLike script, edksetup.sh, edksetup.bat to use Python3 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>
Diffstat (limited to 'BaseTools/BinWrappers/PosixLike/GenerateCapsule')
-rwxr-xr-xBaseTools/BinWrappers/PosixLike/GenerateCapsule6
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/BinWrappers/PosixLike/GenerateCapsule b/BaseTools/BinWrappers/PosixLike/GenerateCapsule
index 59a6c8ba43..3a1bd4d4e9 100755
--- a/BaseTools/BinWrappers/PosixLike/GenerateCapsule
+++ b/BaseTools/BinWrappers/PosixLike/GenerateCapsule
@@ -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