mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-10-31 06:11:59 +01:00
Update launch.sh
This commit is contained in:
1 parent
d974969d6f
commit
cc53bd422c
1 file changed
+1
-10
@@ -3,29 +3,20 @@
|
||||
# launch.sh
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
printf "\n\nLaunches the bot in a virtual environment"
|
||||
|
||||
# activate the virtual environment if it exists
|
||||
if [ -d "venv" ]; then
|
||||
source venv/bin/activate
|
||||
fi
|
||||
|
||||
if [ ! -d "venv" ]; then
|
||||
echo "No virtual environment found. Please run install.sh to set one up"
|
||||
exit 1
|
||||
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
|
||||
echo "Please provide a bot to launch (pong/mesh)"
|
||||
printf "\nPlease provide a bot to launch (pong/mesh)"
|
||||
fi
|
||||
Reference in new issue
Block a user