diff options
author | Lauren Perry <lauren.perry@codethink.co.uk> | 2014-12-11 16:36:04 +0000 |
---|---|---|
committer | Lauren Perry <lauren.perry@codethink.co.uk> | 2014-12-17 12:27:03 +0000 |
commit | 779fd24b8e9926e5b8cc2949589544a58abbda80 (patch) | |
tree | cbfaf9e3a173abf0c07aad0d3847fef7a23b8da2 /firehose.sh | |
parent | 8a2aed17cdaaf2ba20cd9f12f21f703475564406 (diff) | |
download | firehose-779fd24b8e9926e5b8cc2949589544a58abbda80.tar.gz |
Add tools for installing Firehose and its dependencies
Diffstat (limited to 'firehose.sh')
-rwxr-xr-x | firehose.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/firehose.sh b/firehose.sh new file mode 100755 index 0000000..4d272d3 --- /dev/null +++ b/firehose.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +MORPH="${MORPH:-$(which morph)}" + +BASE="$(dirname $0)" +BASE="${BASE:-.}" +BASE="$(realpath ${BASE})" + +# Currently the only way to get this to work is to hardcode the path of the plugin. +# Obviously this is not ideal, but until a working method is obtained this remains +# our best option at present. + +MORPH_PLUGIN_PATH="/usr/lib/python2.7/site-packages/firehose-0.1-py2.7.egg/firehose/plugin" + +export MORPH_PLUGIN_PATH + +PYTHONPATH="${BASE}${PYTHONPATH:+:${PYTHONPATH}}:" + +export PYTHONPATH + +exec ${MORPH} firehose "$@" |