diff options
author | Karl Berry <karl@freefriends.org> | 2019-03-16 22:43:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-03-16 22:43:33 +0000 |
commit | 7e80fa208736f4ab99b1d57dd1571da41f1e3744 (patch) | |
tree | 606bd82a5737d587ef239fd58a5a58c256666178 /Master/texmf-dist/scripts/webquiz/webquiz.bat | |
parent | 9de7d0ea371387f647487812b48b51030c739bdf (diff) |
webquiz
git-svn-id: svn://tug.org/texlive/trunk@50419 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/webquiz/webquiz.bat')
-rwxr-xr-x | Master/texmf-dist/scripts/webquiz/webquiz.bat | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/webquiz/webquiz.bat b/Master/texmf-dist/scripts/webquiz/webquiz.bat new file mode 100755 index 00000000000..c92a60d3a29 --- /dev/null +++ b/Master/texmf-dist/scripts/webquiz/webquiz.bat @@ -0,0 +1,14 @@ +@echo off +setlocal enableextensions +rem assuming the main script is in the same directory +if not exist "%~dpn0.py" ( + echo %~nx0: main script "%~dpn0.py" not found>&2 + exit /b 1 +) +rem check if interpreter is on the PATH +for %%I in (python.exe) do set "PYTHONEXE=%%~$PATH:I" +if not defined PYTHONEXE ( + echo %~nx0: Python interpreter not installed or not on the PATH>&2 + exit /b 1 +) +"%PYTHONEXE%" "%~dpn0.py" %* |