diff options
author | Zhijux Fan <zhijux.fan@intel.com> | 2018-12-19 13:28:44 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-02-01 11:09:22 +0800 |
commit | 9c2d68c0a29909d23266395fc48d0b81b118e341 (patch) | |
tree | 7d5600bbae95ee71ac5ff416d1a285c49732f098 /BaseTools/BinWrappers/PosixLike/TargetTool | |
parent | 94c912950c2f588ab8c3725d7aaa3d7c07aaa995 (diff) | |
download | edk2-9c2d68c0a29909d23266395fc48d0b81b118e341.tar.gz edk2-9c2d68c0a29909d23266395fc48d0b81b118e341.tar.bz2 edk2-9c2d68c0a29909d23266395fc48d0b81b118e341.zip |
BaseTools: Update windows and linux run scripts file to use Python3
Modify windows script, PosixLike script, edksetup.sh, edksetup.bat to
use Python3 based on PYTHON3_ENABLE environment.
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/BinWrappers/PosixLike/TargetTool')
-rwxr-xr-x | BaseTools/BinWrappers/PosixLike/TargetTool | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/BinWrappers/PosixLike/TargetTool b/BaseTools/BinWrappers/PosixLike/TargetTool index 01ae23ddeb..d8b8b8f145 100755 --- a/BaseTools/BinWrappers/PosixLike/TargetTool +++ b/BaseTools/BinWrappers/PosixLike/TargetTool @@ -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 ${PYTHON} command is available, use it in preference to python +if command -v ${PYTHON} >/dev/null 2>&1; then + python_exe=${PYTHON} 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 |