mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-03-28 17:32:36 +01:00
21 lines
392 B
Bash
Executable File
21 lines
392 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# launch.sh
|
|
echo "Launches the bot in a virtual environment"
|
|
|
|
# activate the virtual environment if it exists
|
|
if [ -d "venv" ]; then
|
|
source venv/bin/activate
|
|
fi
|
|
|
|
# launch the application
|
|
cd "$(dirname "$0")"
|
|
|
|
if [ "$1" == "pong" ]; then
|
|
python pong_bot.py
|
|
elif [ "$1" == "mesh" ]; then
|
|
python mesh_bot.py
|
|
else
|
|
echo "Please provide a bot to launch (pong/mesh)"
|
|
fi
|