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
committed by Chris Hill-Scott
parent cf80d0da26
commit cca5145e54

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 .