From 62c36cd51650008c164bf7ff09227c1983e5477c Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Wed, 30 May 2018 15:10:31 -0400 Subject: [PATCH] Add virtual environment activation --- script/bootstrap | 3 +++ script/server | 3 +++ script/test | 3 +++ script/update | 3 +++ 4 files changed, 12 insertions(+) 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