From e6fc51d6f3ea1db2cec7e23c605cad1514b553d1 Mon Sep 17 00:00:00 2001 From: Henning Peters Date: Tue, 22 Dec 2015 01:50:58 +0100 Subject: [PATCH] make venv work for mingw --- venv.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/venv.sh b/venv.sh index 9fb233e9c..8852a5ba0 100755 --- a/venv.sh +++ b/venv.sh @@ -5,7 +5,12 @@ if [ ! -d ".build" ]; then virtualenv .build --python $1 fi -. .build/bin/activate +if [ -d ".build/bin" ]; then + source .build/bin/activate +elif [ -d ".build/Scripts" ]; then + source .build/Scripts/activate +fi + python build.py prepare $3 python build.py $2 python build.py test