Files
meshing-around/launch.sh
2024-07-10 19:56:53 -07:00

24 lines
426 B
Bash
Executable File

#!/bin/bash
# launch.sh
cd "$(dirname "$0")"
# activate the virtual environment if it exists
if [ -d "venv" ]; then
source venv/bin/activate
fi
if [ ! -f "config.ini" ]; then
cp config.template config.ini
fi
# launch the application
if [ "$1" == "pong" ]; then
python pong_bot.py
elif [ "$1" == "mesh" ]; then
python mesh_bot.py
else
printf "\nPlease provide a bot to launch (pong/mesh)"
fi
deactivate