summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorFirehose merge bot <firehose@merge.bot>2014-08-07 09:25:45 +0100
committerFirehose merge bot <firehose@merge.bot>2014-08-07 09:25:45 +0100
commitc2bf2f9961bea6c382fe17bbf1057a58ce6a3d2b (patch)
tree5989f17641312d598c85d3fbbef10b89016bbe9c /morph
parent9db62b92fa21b955eca4a2672e191c56f98eb6ff (diff)
downloadfirehose-c2bf2f9961bea6c382fe17bbf1057a58ce6a3d2b.tar.gz
More firehose bits
Diffstat (limited to 'morph')
-rwxr-xr-xmorph17
1 files changed, 17 insertions, 0 deletions
diff --git a/morph b/morph
new file mode 100755
index 0000000..d92fe4c
--- /dev/null
+++ b/morph
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+MORPH="${MORPH:-$(which morph)}"
+
+BASE="$(dirname $0)"
+BASE="${BASE:-.}"
+BASE="$(realpath ${BASE})"
+
+MORPH_PLUGIN_PATH="${BASE}/plugin"
+
+export MORPH_PLUGIN_PATH
+
+PYTHONPATH="${BASE}${PYTHONPATH:+:${PYTHONPATH}}:"
+
+export PYTHONPATH
+
+exec ${MORPH} "$@"