Skip to content

Commit 2f62526

Browse files
Update setup.bat
1 parent 96c9acd commit 2f62526

1 file changed

Lines changed: 2 additions & 30 deletions

File tree

setup.bat

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,2 @@
1-
@echo off
2-
3-
:: This is a setup script for the Python project
4-
5-
echo Setting up the Python environment...
6-
7-
:: Add Python Scripts directory to PATH
8-
set PYTHON_SCRIPTS_DIR=C:\Users\YourUsername\AppData\Local\Programs\Python\Python<version>\Scripts
9-
if exist %PYTHON_SCRIPTS_DIR% (
10-
setx PATH "%PATH%;%PYTHON_SCRIPTS_DIR%" /M
11-
echo Added Python Scripts directory to PATH.
12-
) else (
13-
echo Error: Python Scripts directory not found. Make sure to update the script with the correct path.
14-
exit /b 1
15-
)
16-
17-
:: Install dependencies
18-
if exist %SystemRoot%\System32\pip.exe (
19-
echo Installing Python dependencies...
20-
pip install -r requirements.txt
21-
) else (
22-
echo Error: pip not found. Please install Python and pip first.
23-
exit /b 1
24-
)
25-
26-
:: Run the main Python script
27-
echo Running main.py...
28-
python main.py
29-
30-
echo Setup complete! You're ready to start working on your Python project.
1+
main.py
2+
pause

0 commit comments

Comments
 (0)