From: Marvin Haeuser Date: Sun, 21 Feb 2016 00:46:59 +0000 (+0800) Subject: BaseTools: Support recent versions of cx_freeze. X-Git-Tag: edk2-stable201903~7607 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=89a811538e24fd598b9267b888c4ab4c2556dae2 BaseTools: Support recent versions of cx_freeze. This patch fixes the assumed invalid command to start recent versions of cx_freeze on Windows, which are python and not Windows executables. To launch them correctly, the '$(PYTHON_HOME)\python' prefix has been added, so that Python can interpret the tool. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Marvin Haeuser Reviewed-by: Yonghong Zhu --- diff --git a/BaseTools/Source/Python/Makefile b/BaseTools/Source/Python/Makefile index 4eea515d9b..8bc213b47c 100644 --- a/BaseTools/Source/Python/Makefile +++ b/BaseTools/Source/Python/Makefile @@ -17,7 +17,7 @@ !IF EXIST ($(PYTHON_FREEZER_PATH)\cxfreeze) # Using cx_Freeze 4.2.3 with Python 2.7.2 -FREEZE=$(PYTHON_FREEZER_PATH)\cxfreeze +FREEZE=$(PYTHON_HOME)\python $(PYTHON_FREEZER_PATH)\cxfreeze !ELSE # Using cx_Freeze 3.0.3 with Python 2.5.4 FREEZE=$(PYTHON_FREEZER_PATH)\FreezePython.exe