mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-07 09:22:44 +02:00
Update launch.sh
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
# 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
|
||||
@@ -11,10 +16,6 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f "config.ini" ]; then
|
||||
cp config.template config.ini
|
||||
fi
|
||||
|
||||
# launch the application
|
||||
if [ "$1" == "pong" ]; then
|
||||
python3 pong_bot.py
|
||||
|
||||
Reference in New Issue
Block a user