diff options
author | Kali Kaneko <kali@leap.se> | 2013-12-10 15:54:45 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-12-10 15:54:45 -0400 |
commit | 544994901c871dedf5243672d3ce1f24a78c0ae9 (patch) | |
tree | 969f71f6aa2e725f7e5f39b8afe6b5335ab1b10d /common/pkg/tools/with_venvwrapper.sh | |
parent | 8cf19079e6d13005f7042fd25118c33532261f98 (diff) | |
parent | deb78a5f3502ece98ec3e0b70f93025c4a1b3da5 (diff) |
Merge tag '0.4.4' into debian-0.4.4
Tag leap.soledad 0.4.4 version 0.4.4
Diffstat (limited to 'common/pkg/tools/with_venvwrapper.sh')
-rwxr-xr-x | common/pkg/tools/with_venvwrapper.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/common/pkg/tools/with_venvwrapper.sh b/common/pkg/tools/with_venvwrapper.sh new file mode 100755 index 00000000..b62bc10f --- /dev/null +++ b/common/pkg/tools/with_venvwrapper.sh @@ -0,0 +1,19 @@ +#!/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: " +echo `pyver leap.bitmask` +echo `pyver leap.soledad.common` +echo `pyver leap.keymanager` +$2 $3 $4 $5 |