summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
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} "$@"