summaryrefslogtreecommitdiff
path: root/tools/with_venv.sh
diff options
context:
space:
mode:
authorSteve Baker <sbaker@redhat.com>2012-10-10 08:55:03 +1300
committerSteve Baker <sbaker@redhat.com>2012-10-10 08:55:03 +1300
commit1269bb20c770ca9869f54da9e1db9af7173b9809 (patch)
tree2f66d6bb8078a1e765b3215e3a93b7a3e5fa44e4 /tools/with_venv.sh
downloadpython-heatclient-1269bb20c770ca9869f54da9e1db9af7173b9809.tar.gz
Initial import
Diffstat (limited to 'tools/with_venv.sh')
-rwxr-xr-xtools/with_venv.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/with_venv.sh b/tools/with_venv.sh
new file mode 100755
index 0000000..e6e44f5
--- /dev/null
+++ b/tools/with_venv.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+command -v tox > /dev/null 2>&1
+if [ $? -ne 0 ]; then
+ echo 'This script requires "tox" to run.'
+ echo 'You can install it with "pip install tox".'
+ exit 1;
+fi
+
+tox -evenv -- $@