generated from mononoki/pyproj
20 lines
325 B
Batchfile
20 lines
325 B
Batchfile
@echo off
|
|
setlocal
|
|
cd /d "%~dp0.."
|
|
|
|
set "PYTHON=D:\_Programs\anaconda\envs\sites\python.exe"
|
|
if not exist "%PYTHON%" (
|
|
echo Python not found: %PYTHON%
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
if "%~1"=="" (
|
|
"%PYTHON%" -m pytest "%~dp0."
|
|
) else (
|
|
"%PYTHON%" -m pytest %*
|
|
)
|
|
set "EXIT_CODE=%ERRORLEVEL%"
|
|
pause
|
|
exit /b %EXIT_CODE%
|