updated run_tests to not use venv in the app if VIRTUAL_ENV is set

This commit is contained in:
Martyn Inglis
2017-04-25 15:32:12 +01:00
parent 1e2e0b4f74
commit e7d6fd3293

View File

@@ -24,7 +24,7 @@ function display_result {
fi
}
if [ -d venv ]; then
if [[ -z "$VIRTUAL_ENV" ]] && [[ -d venv ]]; then
source ./venv/bin/activate
fi
pycodestyle .