-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
33 lines (29 loc) · 934 Bytes
/
run.bat
File metadata and controls
33 lines (29 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
echo ===================================
echo Crypto Trading Strategy Generator
echo ===================================
REM Check if Python is installed
where python >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo Python is not installed or not in PATH. Please install Python 3.7+.
exit /b 1
)
REM Activate virtual environment if it exists
if exist venv\Scripts\activate.bat (
echo Activating virtual environment...
call venv\Scripts\activate.bat
) else (
echo Virtual environment not found. Using system Python.
)
REM Check dependencies
echo Checking dependencies...
python check_deps.py
REM Start the application if dependencies check passed
if %ERRORLEVEL% equ 0 (
echo Starting Crypto Trading Strategy Generator...
python -m streamlit run main.py
) else (
echo Failed to verify dependencies. Please install required packages manually.
echo pip install -r requirements.txt
exit /b 1
)