Files
tabbyAPI/Start.bat
kingbri 46f6dc824e Scripts: Add requirements update to start script
Also add an argument to skip the requirements if needed.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-12-18 23:53:47 -05:00

14 lines
383 B
Batchfile

@echo off
set VENV_DIR=
set REQUIREMENTS_FILE=
if not defined PYTHON (set PYTHON=python)
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")
if not defined REQUIREMENTS_FILE (set "REQUIREMENTS_FILE=requirements-nowheel.txt")
call "%VENV_DIR%\Scripts\activate.bat"
call pip -V
if NOT [%1] == [--ignore-upgrade] call pip install --upgrade -r %REQUIREMENTS_FILE%
call python main.py