diff options
author | Yunhua Feng <yunhuax.feng@intel.com> | 2018-09-05 17:27:05 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-10-13 09:57:14 +0800 |
commit | 04c47cd40111f85614ec51f6ba8d4e9a2f0fafde (patch) | |
tree | b2a02b864df611726df279872f9ca4db51827f3c /BaseTools/BinWrappers/PosixLike/UPT | |
parent | 8be15c61e88709c55970c5d5272d19bd9bba67fb (diff) | |
download | edk2-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/UPT')
-rwxr-xr-x | BaseTools/BinWrappers/PosixLike/UPT | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/BinWrappers/PosixLike/UPT b/BaseTools/BinWrappers/PosixLike/UPT index 01ae23ddeb..76effb6da0 100755 --- a/BaseTools/BinWrappers/PosixLike/UPT +++ b/BaseTools/BinWrappers/PosixLike/UPT @@ -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 |