[Python-checkins] cpython (3.4): Issue #21688: Give informative error message when hhc.exe cannot be found.

zach.ware python-checkins at python.org
Tue Jun 10 19:08:37 CEST 2014


http://hg.python.org/cpython/rev/b841b80e6421
changeset:   91119:b841b80e6421
branch:      3.4
parent:      91117:2b3f8b6d6e5c
user:        Zachary Ware <zachary.ware at gmail.com>
date:        Tue Jun 10 12:07:45 2014 -0500
summary:
  Issue #21688: Give informative error message when hhc.exe cannot be found.

Initial patch by Olive Kilburn.

files:
  Doc/make.bat |  9 +++++++++
  1 files changed, 9 insertions(+), 0 deletions(-)


diff --git a/Doc/make.bat b/Doc/make.bat
--- a/Doc/make.bat
+++ b/Doc/make.bat
@@ -76,6 +76,15 @@
 cmd /C %SPHINXBUILD% %SPHINXOPTS% -b%1 -dbuild\doctrees . %BUILDDIR%\%*
 
 if "%1" EQU "htmlhelp" (
+    if  not exist "%HTMLHELP%" (
+        echo.
+        echo.The HTML Help Workshop was not found.  Set the HTMLHELP variable
+        echo.to the path to hhc.exe or download and install it from
+        echo.http://msdn.microsoft.com/en-us/library/ms669985
+        rem Set errorlevel to 1 and exit
+        cmd /C exit /b 1
+        goto end
+    )
     cmd /C "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp
     rem hhc.exe seems to always exit with code 1, reset to 0 for less than 2
     if not errorlevel 2 cmd /C exit /b 0

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list