mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
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>
11 lines
192 B
Batchfile
11 lines
192 B
Batchfile
@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
|