From bfb992fa2bd81d6c51262334e683330bb28b7fe3 Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Sat, 29 Aug 2020 16:57:57 +0100 Subject: [PATCH] Update example MS Windows batch file Run LinkChecker after installing with pip on Python from the MS Store. --- doc/examples/windows.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/examples/windows.bat b/doc/examples/windows.bat index 19b497ab..e19daa83 100644 --- a/doc/examples/windows.bat +++ b/doc/examples/windows.bat @@ -1,4 +1,4 @@ @echo off -:: example using linkchecker on windows, logging to html -set PYDIR=c:\python26 -%PYDIR%\python.exe %PYDIR%\scripts\linkchecker -Fhtml http://www.example.com +:: Do replace the for loop with setting SCRIPTSDIR to the literal path +for /f "delims=" %%i in ('python -c "import site; print(site.getusersitepackages().replace('site-packages', 'Scripts'))"') do set SCRIPTSDIR=%%i +python %SCRIPTSDIR%\linkchecker %*