diff options
author | Kali Kaneko <kali@leap.se> | 2013-12-10 15:59:24 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-12-10 15:59:24 -0400 |
commit | 5a4c47c4a3fb0c394c64000aa87dcece9b5ee990 (patch) | |
tree | ffd82d43d359f0ff36ae480ee22ce8843176dac1 /pkg | |
parent | 9a3a53c2681bb6351a2d58d0a5ac8628b374c60b (diff) | |
parent | 496036f15cf257d16b6594770812da64a249280c (diff) |
Merge tag '0.3.8' into debian-0.3.8
Tag leap.bitmask version 0.3.8
Diffstat (limited to 'pkg')
-rwxr-xr-x | pkg/tools/with_venvwrapper.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg/tools/with_venvwrapper.sh b/pkg/tools/with_venvwrapper.sh new file mode 100755 index 00000000..693c0ac9 --- /dev/null +++ b/pkg/tools/with_venvwrapper.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +#Wraps a command in a virtualenwrapper passed as first argument. +#Example: +#with_virtualenvwrapper.sh leap-bitmask ./run_tests.sh + +wd=`pwd` +alias pyver='python -c "import $1;print $1.__path__[0]; print $1.__version__;"' + +source `which virtualenvwrapper.sh` +echo "Activating virtualenv " $1 +echo "------------------------------------" +workon $1 +cd $wd +echo "running version: " `pyver leap.bitmask` +$2 $3 $4 $5 |