[Python-checkins] bpo-35374: Avoid trailing space in hhc file name if found on PATH. (GH-10849)

Steve Dower webhook-mailer at python.org
Mon Jan 7 21:57:35 EST 2019


https://github.com/python/cpython/commit/e61cc481e02b758c8d8289163102c236d0658a55
commit: e61cc481e02b758c8d8289163102c236d0658a55
branch: master
author: chrullrich <chris at chrullrich.net>
committer: Steve Dower <steve.dower at microsoft.com>
date: 2019-01-07T18:57:29-08:00
summary:

bpo-35374: Avoid trailing space in hhc file name if found on PATH. (GH-10849)

files:
M Doc/make.bat

diff --git a/Doc/make.bat b/Doc/make.bat
index 461c35c5a114..e6604956ea91 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"



More information about the Python-checkins mailing list