summaryrefslogtreecommitdiff
path: root/keymanager/pkg/tools/with_venvwrapper.sh
blob: 26229785c2028fee7a5559a2b7a91199c7246abc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

#Wraps a command in a virtualenwrapper passed as first argument.
#Example:
#with_virtualenvwrapper.sh leap-bitmask ./run_tests.sh

wd=`pwd`
source `which virtualenvwrapper.sh`
echo "Activating virtualenv " $1
echo "------------------------------------"
workon $1
cd $wd
echo "running version: " `pyver leap.keymanager`
echo "soledad version: " `pyver leap.soledad.common`
$2 $3 $4 $5