refactor
This commit is contained in:
parent
2d6a6bd3a1
commit
d80e723b94
28 changed files with 1801 additions and 352 deletions
20
tools/python-detect/setup-venv.bat
Normal file
20
tools/python-detect/setup-venv.bat
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
@echo off
|
||||
setlocal
|
||||
|
||||
cd /d "%~dp0"
|
||||
|
||||
if exist .venv (
|
||||
echo Existing venv found, upgrading pip...
|
||||
.venv\Scripts\python.exe -m pip install --upgrade pip
|
||||
) else (
|
||||
echo Creating virtual environment...
|
||||
python -m venv .venv
|
||||
.venv\Scripts\python.exe -m pip install --upgrade pip
|
||||
)
|
||||
|
||||
echo Installing dependencies...
|
||||
.venv\Scripts\pip.exe install -r requirements.txt
|
||||
|
||||
echo.
|
||||
echo Setup complete. Activate with: .venv\Scripts\activate
|
||||
echo Test daemon with: echo {"cmd":"ping"} | .venv\Scripts\python.exe daemon.py
|
||||
Loading…
Add table
Add a link
Reference in a new issue