12 lines
262 B
Batchfile
12 lines
262 B
Batchfile
@echo off
|
|
setlocal
|
|
cd /d "%~dp0"
|
|
py -3 -c "import websocket" >nul 2>nul
|
|
if errorlevel 1 (
|
|
echo Installing required websocket-client package...
|
|
py -3 -m pip install -r requirements.txt
|
|
if errorlevel 1 pause & exit /b 1
|
|
)
|
|
py -3 main.py
|
|
if errorlevel 1 pause
|