summaryrefslogtreecommitdiff
path: root/pkg/tools/with_venvwrapper.sh
blob: 988d28221e174639a1d71b61177f759633a95218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

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

alias pyver='python -c "import $1;print $1.__path__[0]; print $1.__version__;"'

source `which virtualenvwrapper.sh`
workon $1
echo "running version: " `pyver leap.bitmask`
$2 $3 $4 $5