From 2f39a98c2652107f20780dfc2b4ecf03b6b4b057 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 19 Jan 2016 23:36:58 +0100
Subject: [PATCH] Add setup script.

---
 README.md => README |  0
 run.sh              | 16 ++++++++++++++++
 2 files changed, 16 insertions(+)
 rename README.md => README (100%)
 create mode 100755 run.sh

diff --git a/README.md b/README
similarity index 100%
rename from README.md
rename to README
diff --git a/run.sh b/run.sh
new file mode 100755
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 
-- 
2.30.2