X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FBinWrappers%2FPosixLike%2FGenFds;fp=BaseTools%2FBinWrappers%2FPosixLike%2FGenFds;h=c894384908544bb09ccff3c853f55b8ad420b4be;hp=e9f570b52cef8f72ba0f691739f4f73e96a81405;hb=7aef7b7cbf16f79fb17c5ace98b1bc7f15bb90fa;hpb=d8238aaf862a55eec77040844c71a02c71294e86 diff --git a/BaseTools/BinWrappers/PosixLike/GenFds b/BaseTools/BinWrappers/PosixLike/GenFds index e9f570b52c..c894384908 100755 --- a/BaseTools/BinWrappers/PosixLike/GenFds +++ b/BaseTools/BinWrappers/PosixLike/GenFds @@ -1,9 +1,9 @@ #!/usr/bin/env bash #python `dirname $0`/RunToolFromSource.py `basename $0` $* -# If a ${PYTHON} command is available, use it in preference to python -if command -v ${PYTHON} >/dev/null 2>&1; then - python_exe=${PYTHON} +# If a ${PYTHON_COMMAND} command is available, use it in preference to python +if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then + python_exe=${PYTHON_COMMAND} 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