summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-12-05 11:18:51 -0300
committerTomás Touceda <chiiph@leap.se>2013-12-05 11:18:51 -0300
commitd91a54bfd51ff0d4b570391a17e1b2acd677068e (patch)
treea4a31c45f0d51b5f5747f986350132f65c96879b /pkg
parent0896d4f96a8475af1d48c6da75337fed1ccf73fc (diff)
parentd7a7c886b06acbe3ff5e5abb3911fd4905432ca6 (diff)
Merge remote-tracking branch 'refs/remotes/kali/bug/virtualenvwrapper-tests-fix-working-dir' into develop
Diffstat (limited to 'pkg')
-rwxr-xr-xpkg/tools/with_venvwrapper.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/tools/with_venvwrapper.sh b/pkg/tools/with_venvwrapper.sh
index 988d2822..693c0ac9 100755
--- a/pkg/tools/with_venvwrapper.sh
+++ b/pkg/tools/with_venvwrapper.sh
@@ -4,9 +4,13 @@
#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