Skip to content

Commit 97ed7f0

Browse files
authored
Merge pull request #7 from SpookySkeletons/main
Add start bash script
2 parents b77259c + f03de56 commit 97ed7f0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

run_babble_cpu.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
# Set virtual environment directory name
4+
VENV_DIR="venv"
5+
6+
# Check if the virtual environment directory exists, create it if not
7+
if [ ! -d "$VENV_DIR" ]; then
8+
echo "Creating virtual environment..."
9+
python3 -m venv "$VENV_DIR"
10+
fi
11+
12+
# Activate the virtual environment
13+
source "$VENV_DIR/bin/activate"
14+
15+
# Install or update packages from the requirements.txt file
16+
echo "Installing or updating packages from requirements.txt..."
17+
pip install --upgrade -r requirements.txt
18+
19+
# Run BabbleCPU.py
20+
echo "Starting BabbleCPU..."
21+
python BabbleCPU.py
22+
23+
# Deactivate the virtual environment
24+
deactivate
25+

0 commit comments

Comments
 (0)