Add run.sh

This commit is contained in:
michaelachrisco 2024-12-28 00:25:28 -08:00
parent fd419012c1
commit d063554519

19
run.sh Normal file
View file

@ -0,0 +1,19 @@
#!/bin/bash
# Activate the virtual environment
source /home/youruserhere/meshtastic_forceast/venv/bin/activate
# Check if the activation was successful
if [ $? -ne 0 ]; then
echo "Failed to activate virtual environment."
exit 1
fi
# Run the Python script
python /home/youruserhere/meshtastic_forceast/main.py
# Deactivate the virtual environment when done
deactivate
# Optionally, you can add a message after the script finishes
echo "Python script execution finished."