32 lines
821 B
Batchfile
32 lines
821 B
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
|
|
set "BOTTY_DIR=%~dp0"
|
|
cd /d "%BOTTY_DIR%"
|
|
|
|
call "%BOTTY_DIR%find_python.bat"
|
|
if errorlevel 1 exit /b 1
|
|
|
|
for %%F in ("%PYTHON%") do set "_ENV=%%~dpF"
|
|
set "_ENV=%_ENV:~0,-1%"
|
|
|
|
set "PATH=%_ENV%;%_ENV%\Scripts;%_ENV%\Library\bin;%_ENV%\Library\mingw-w64\bin;%_ENV%\Library\usr\bin;%_ENV%\DLLs;%PATH%"
|
|
set "CONDA_PREFIX=%_ENV%"
|
|
set "PYTHONUTF8=1"
|
|
set "PYTHONIOENCODING=utf-8"
|
|
set "SSL_CERT_DIR="
|
|
set "TESSDATA_PREFIX=%_ENV%\Library\share"
|
|
set "PYTESSERACT_TESSERACT_CMD=C:\Program Files\Tesseract-OCR\tesseract.exe"
|
|
|
|
echo Running gem transmute testbed...
|
|
echo Usage examples:
|
|
echo run_gems_all.bat
|
|
echo run_gems_all.bat flawless
|
|
echo run_gems_all.bat flawless diamond --max 1
|
|
echo.
|
|
|
|
"%PYTHON%" "%BOTTY_DIR%tools\testbed.py" gems_all %*
|
|
set "RC=%ERRORLEVEL%"
|
|
pause
|
|
exit /b %RC%
|