home · contact · privacy
Add setup script.
[plomlombot-irc.git] / run.sh
diff --git a/run.sh b/run.sh
new file mode 100755 (executable)
index 0000000..685d07b
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# This script runs the plomlombot in a virtual environment with temporarily
+# installed required external Python libraries.
+set -e
+
+DIR_ENV=.temp_env
+
+pyvenv $DIR_ENV 
+source $DIR_ENV/bin/activate
+pip install -r requirements.txt
+set +e
+echo
+python3 plomlombot.py -n plomplombot "$@" 
+deactivate
+rm -rf $DIR_ENV