Merge pull request #7 from SpookySkeletons/main

Add start bash script
This commit is contained in:
Summer authored and GitHub committed 2023-03-26 21:10:53 -07:00
commit 97ed7f039e
1 file changed
+25
+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
# Set virtual environment directory name
VENV_DIR="venv"
# Check if the virtual environment directory exists, create it if not
if [ ! -d "$VENV_DIR" ]; then
echo "Creating virtual environment..."
python3 -m venv "$VENV_DIR"
fi
# Activate the virtual environment
source "$VENV_DIR/bin/activate"
# Install or update packages from the requirements.txt file
echo "Installing or updating packages from requirements.txt..."
pip install --upgrade -r requirements.txt
# Run BabbleCPU.py
echo "Starting BabbleCPU..."
python BabbleCPU.py
# Deactivate the virtual environment
deactivate