summaryrefslogtreecommitdiff
path: root/pkg/tools
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-12-05 07:35:25 -0300
committerTomás Touceda <chiiph@leap.se>2013-12-05 07:35:25 -0300
commit0896d4f96a8475af1d48c6da75337fed1ccf73fc (patch)
tree8e965145dd0989d3c1b68c6217ab148f3ff062a2 /pkg/tools
parentae72f363e10a147e8d8d9cb5555bc2a42bb74e44 (diff)
parent4945a2233363b496640e71a5f7bc0fd37d185592 (diff)
Merge remote-tracking branch 'refs/remotes/kali/feature/virtualenvwrapper-tests' into develop
Diffstat (limited to 'pkg/tools')
-rwxr-xr-xpkg/tools/with_venvwrapper.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/tools/with_venvwrapper.sh b/pkg/tools/with_venvwrapper.sh
new file mode 100755
index 00000000..988d2822
--- /dev/null
+++ b/pkg/tools/with_venvwrapper.sh
@@ -0,0 +1,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