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 <Marvin.Haeuser@outlook.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
\r
!IF EXIST ($(PYTHON_FREEZER_PATH)\cxfreeze)\r
# Using cx_Freeze 4.2.3 with Python 2.7.2\r
-FREEZE=$(PYTHON_FREEZER_PATH)\cxfreeze\r
+FREEZE=$(PYTHON_HOME)\python $(PYTHON_FREEZER_PATH)\cxfreeze\r
!ELSE\r
# Using cx_Freeze 3.0.3 with Python 2.5.4\r
FREEZE=$(PYTHON_FREEZER_PATH)\FreezePython.exe\r