summaryrefslogtreecommitdiff
path: root/tools/with_venv.sh
diff options
context:
space:
mode:
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 -- $@