summaryrefslogtreecommitdiff
path: root/Doc/make.bat
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-01-07 19:04:14 -0800
committerGitHub <noreply@github.com>2019-01-07 19:04:14 -0800
commit5d1e0124cf562153a681d1b5b362e7c8e23edea9 (patch)
treed4d95428f52676f9c2d6f78fd03a05208516f5bf /Doc/make.bat
parent88bd26a72eb4ab341cf19bea78a0039fbe4be3a2 (diff)
downloadcpython-git-5d1e0124cf562153a681d1b5b362e7c8e23edea9.tar.gz
bpo-35374: Avoid trailing space in hhc file name if found on PATH. (GH-10849)
(cherry picked from commit e61cc481e02b758c8d8289163102c236d0658a55) Co-authored-by: chrullrich <chris@chrullrich.net>
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 461c35c5a1..e6604956ea 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"