forked from SpudGunMan/meshing-around
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch.sh
More file actions
executable file
·34 lines (28 loc) · 807 Bytes
/
launch.sh
File metadata and controls
executable file
·34 lines (28 loc) · 807 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
#!/bin/bash
# This script launches the meshing-around bot or the report generator in python virtual environment
# launch.sh
cd "$(dirname "$0")"
if [ ! -f "config.ini" ]; then
cp config.template config.ini
fi
# activate the virtual environment if it exists
if [ -d "venv" ]; then
source venv/bin/activate
else
echo "Virtual environment not found, this tool just launches the .py in venv"
exit 1
fi
# launch the application
if [[ "$1" == pong* ]]; then
python3 pong_bot.py
elif [[ "$1" == mesh* ]]; then
python3 mesh_bot.py
elif [ "$1" == "html" ]; then
python3 etc/report_generator.py
elif [ "$1" == "html5" ]; then
python3 etc/report_generator5.py
else
echo "Please provide a bot to launch (pong/mesh) or a report to generate (html/html5)"
exit 1
fi
deactivate