Skip to content

Commit f8057e0

Browse files
committed
Improved starter scripts
1 parent 448c5a8 commit f8057e0

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

src/pbt.bat

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
@echo off
22

33
if exist "venv\" (
4+
echo Activating the virtual enviroment...
45
.\venv\Scripts\activate
6+
echo\
57

8+
echo Starting the program...
69
python main.py
710

811
) else (
9-
echo "Creating a virtual enviroment..."
10-
12+
echo Creating the virtual enviroment...
1113
python -m venv venv
14+
echo\
1215

16+
echo Activating the virtual enviroment...
1317
.\venv\Scripts\activate
18+
echo\
1419

15-
echo "Installing dependencies..."
16-
20+
echo Installing the dependencies...
1721
pip install -r requirements.txt
22+
echo\
1823

19-
echo ""
20-
24+
echo Starting the program...
2125
python main.py
2226
)

src/pbt.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
if [ -d "venv" ];
44
then
5+
echo "Activating the virtual enviroment..."
56
source ./venv/bin/activate
67

8+
echo -e "\nStarting the program..."
79
python main.py
810

911
else
10-
echo "Creating a virtual enviroment..."
11-
12+
echo "Creating the virtual enviroment..."
1213
python -m venv venv
13-
14+
15+
echo -e "\nActivating the virtual enviroment..."
1416
source ./venv/bin/activate
1517

16-
echo -e "\nInstalling dependencies..."
17-
18+
echo -e "\nInstalling the dependencies..."
1819
pip install -r requirements.txt
1920

20-
echo ""
21-
21+
echo -e "\nStarting the program..."
2222
python main.py
2323

2424
fi

0 commit comments

Comments
 (0)