mirror of https://github.com/acidanthera/audk.git
BaseTools/toolsetup.bat: fixed the error when the path contains space
We have a new simple and effective method to resolve the original issue that the PATH env's update error when the path contains space, so this patch remove the last check in and use the new method to fix the original issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19028 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
38b986e3d0
commit
35ba063da8
|
@ -322,24 +322,13 @@ goto end
|
|||
echo !!! WARNING !!! Will not be able to compile Python programs to .exe
|
||||
echo Will setup environment to run Python scripts directly.
|
||||
echo.
|
||||
goto UpdatePATH
|
||||
)
|
||||
else (
|
||||
goto UpdateEnv
|
||||
set "PATH=%BASETOOLS_PYTHON_SOURCE%\Trim;%PATH%"
|
||||
set "PATH=%BASETOOLS_PYTHON_SOURCE%\GenFds;%PATH%"
|
||||
set "PATH=%BASETOOLS_PYTHON_SOURCE%\build;%PATH%"
|
||||
set PATHEXT=%PATHEXT%;.py
|
||||
)
|
||||
)
|
||||
else (
|
||||
goto UpdateEnv
|
||||
)
|
||||
|
||||
:UpdatePATH
|
||||
set PATH=%BASETOOLS_PYTHON_SOURCE%\Trim;%PATH%
|
||||
set PATH=%BASETOOLS_PYTHON_SOURCE%\GenFds;%PATH%
|
||||
set PATH=%BASETOOLS_PYTHON_SOURCE%\build;%PATH%
|
||||
set PATHEXT=%PATHEXT%;.py
|
||||
goto UpdateEnv
|
||||
|
||||
:UpdateEnv
|
||||
|
||||
echo BASE_TOOLS_PATH = %BASE_TOOLS_PATH%
|
||||
echo PYTHON_PATH = %PYTHON_PATH%
|
||||
echo PYTHON_FREEZER_PATH = %PYTHON_FREEZER_PATH%
|
||||
|
|
Loading…
Reference in New Issue