Tree: Add batch script
A simple batch script to activate a venv and start TabbyAPI. This can be used with nssm in Windows for a systemd-like background service. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
2aa9c145be
commit
c92ee24bb4
1 changed files with 10 additions and 0 deletions
10
Start.bat
Normal file
10
Start.bat
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
@echo off
|
||||
|
||||
set VENV_DIR=
|
||||
|
||||
if not defined PYTHON (set PYTHON=python)
|
||||
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")
|
||||
|
||||
call "%VENV_DIR%\Scripts\activate.bat"
|
||||
call pip -V
|
||||
call python main.py
|
||||
Loading…
Add table
Add a link
Reference in a new issue