-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_and_run.bat
More file actions
41 lines (33 loc) · 915 Bytes
/
Copy pathsetup_and_run.bat
File metadata and controls
41 lines (33 loc) · 915 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
34
35
36
37
38
39
40
41
@echo off
chcp 65001 >nul
echo Setting up virtual environment...
REM Get the directory where this batch file is located
set "SCRIPT_DIR=%~dp0"
cd /d "%SCRIPT_DIR%"
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo Error: Python not found, please install Python first
pause
exit /b 1
)
REM Create virtual environment
if not exist "venv" (
echo Creating virtual environment...
python -m venv venv
)
REM Activate virtual environment
echo Activating virtual environment...
call venv\Scripts\activate.bat
REM Upgrade pip
echo Upgrading pip...
python -m pip install --upgrade pip
REM Install dependencies
echo Installing dependencies...
pip install -r requirements.txt
REM Run script
echo Starting Window Arranger...
echo Press Ctrl+Alt+I to arrange windows
echo Press Ctrl+Alt+Q to exit
python window_arranger.py
pause