diff --git a/script/bootstrap b/script/bootstrap index b845e1ea..a8e9be6c 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -6,6 +6,9 @@ set -e # Ensure we are in the app root directory (not the /script directory) cd "$(dirname "$0")/.." +# Activate virtual environment +source .venv/bin/activate + # Install Python dependencies pip install -r requirements.txt diff --git a/script/server b/script/server index a7006aa9..bf55d6c4 100755 --- a/script/server +++ b/script/server @@ -6,5 +6,8 @@ set -e # Ensure we are in the app root directory (not the /script directory) cd "$(dirname "$0")/.." +# Activate virtual environment +source .venv/bin/activate + # Launch the app python3 app.py diff --git a/script/test b/script/test index 29918052..7c92f24e 100755 --- a/script/test +++ b/script/test @@ -6,5 +6,8 @@ set -e # Ensure we are in the app root directory (not the /script directory) cd "$(dirname "$0")/.." +# Activate virtual environment +source .venv/bin/activate + # Run unit tests python3 -m pytest diff --git a/script/update b/script/update index d8d785f1..d8f9af45 100755 --- a/script/update +++ b/script/update @@ -6,5 +6,8 @@ set -e # Ensure we are in the app root directory (not the /script directory) cd "$(dirname "$0")/.." +# Activate virtual environment +source .venv/bin/activate + # Update dependencies script/bootstrap