diff options
author | Kali Kaneko <kali@leap.se> | 2013-12-10 18:09:54 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-12-10 18:09:54 -0400 |
commit | bd93b18b3e55ca5b3b4c4a00edb427ae60dc7f16 (patch) | |
tree | a1016b25d2e320325376c8bd18010b16d7dadb4b /pkg/tools | |
parent | 46dd13b53ce67f1a2d96be9baf02cf008d4d1b34 (diff) | |
parent | f3b2fca6dd46c6d4a72b5d61b43a6cfb2e7ba9e7 (diff) |
Merge branch 'debian-0.3.8' into debian
Diffstat (limited to 'pkg/tools')
-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 0000000..693c0ac --- /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 |