diff options
author | Liming Gao <liming.gao@intel.com> | 2018-12-28 16:25:04 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-02-01 11:09:23 +0800 |
commit | 7aef7b7cbf16f79fb17c5ace98b1bc7f15bb90fa (patch) | |
tree | 360f42806db00160fa79e6d2647722b3782c5206 /BaseTools/Source/Python/build | |
parent | d8238aaf862a55eec77040844c71a02c71294e86 (diff) | |
download | edk2-7aef7b7cbf16f79fb17c5ace98b1bc7f15bb90fa.tar.gz edk2-7aef7b7cbf16f79fb17c5ace98b1bc7f15bb90fa.tar.bz2 edk2-7aef7b7cbf16f79fb17c5ace98b1bc7f15bb90fa.zip |
BaseTools: Update PYTHON env to PYTHON_COMMAND
Update PYTHON env to PYTHON_COMMAND.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/build')
-rw-r--r-- | BaseTools/Source/Python/build/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py index b5b969e876..c2b22cca70 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -796,7 +796,8 @@ class Build(): if PYTHON3_ENABLE != "TRUE":
PYTHON3_ENABLE = "FALSE"
EdkLogger.quiet("%-16s = %s" % ("PYTHON3_ENABLE", PYTHON3_ENABLE))
- EdkLogger.quiet("%-16s = %s" % ("PYTHON", os.environ["PYTHON"]))
+ if "PYTHON_COMMAND" in os.environ:
+ EdkLogger.quiet("%-16s = %s" % ("PYTHON_COMMAND", os.environ["PYTHON_COMMAND"]))
self.InitPreBuild()
self.InitPostBuild()
if self.Prebuild:
|