summaryrefslogtreecommitdiffstats
path: root/Doc/make.bat
diff options
context:
space:
mode:
authorchrullrich <chris@chrullrich.net>2019-01-08 02:57:29 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2019-01-08 02:57:29 (GMT)
commite61cc481e02b758c8d8289163102c236d0658a55 (patch)
treee3005241028e9c90667787636456d09eb80f9238 /Doc/make.bat
parent202d1bde8f0d8854c7cba5ed2d93b469972b57cf (diff)
downloadcpython-e61cc481e02b758c8d8289163102c236d0658a55.zip
cpython-e61cc481e02b758c8d8289163102c236d0658a55.tar.gz
cpython-e61cc481e02b758c8d8289163102c236d0658a55.tar.bz2
bpo-35374: Avoid trailing space in hhc file name if found on PATH. (GH-10849)
Diffstat (limited to 'Doc/make.bat')
-rw-r--r--Doc/make.bat2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/make.bat b/Doc/make.bat
index 461c35c..e660495 100644
--- a/Doc/make.bat
+++ b/Doc/make.bat
@@ -41,7 +41,7 @@ if exist "%HTMLHELP%" goto :skiphhcsearch
rem Search for HHC in likely places
set HTMLHELP=
-where hhc /q && set HTMLHELP=hhc && goto :skiphhcsearch
+where hhc /q && set "HTMLHELP=hhc" && goto :skiphhcsearch
where /R ..\externals hhc > "%TEMP%\hhc.loc" 2> nul && set /P HTMLHELP= < "%TEMP%\hhc.loc" & del "%TEMP%\hhc.loc"
if not exist "%HTMLHELP%" where /R "%ProgramFiles(x86)%" hhc > "%TEMP%\hhc.loc" 2> nul && set /P HTMLHELP= < "%TEMP%\hhc.loc" & del "%TEMP%\hhc.loc"
if not exist "%HTMLHELP%" where /R "%ProgramFiles%" hhc > "%TEMP%\hhc.loc" 2> nul && set /P HTMLHELP= < "%TEMP%\hhc.loc" & del "%TEMP%\hhc.loc"